|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SmoothCurve2D
Interface for smooth and continuous curves. Such curves accept first and second derivatives at every point, and can be drawn with a parametric representation for every values of t comprised between T0 and T1. Every instance of Curve2D is a compound of several SmoothCurve2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
CurveSet2D<? extends SmoothCurve2D> |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
Vector2D |
normal(double t)
Returns the normal vector of the curve at the given position. |
SmoothCurve2D |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
SmoothCurve2D |
subCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
Vector2D |
tangent(double t)
Returns the tangent of the curve at the given position. |
SmoothCurve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform. |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, asPolyline, curvature, isClosed, leftTangent, rightTangent, smoothPieces |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
asAwtShape, clone, continuousCurves, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Method Detail |
---|
Vector2D tangent(double t)
t
- a position on the curve
normal(double)
Vector2D normal(double t)
t
- a position on the curve
tangent(double)
SmoothCurve2D reverse()
Curve2D
reverse
in interface ContinuousCurve2D
reverse
in interface Curve2D
SmoothCurve2D subCurve(double t0, double t1)
Curve2D
subCurve
in interface ContinuousCurve2D
subCurve
in interface Curve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
CurveSet2D<? extends SmoothCurve2D> clip(Box2D box)
Curve2D
clip
in interface ContinuousCurve2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
SmoothCurve2D transform(AffineTransform2D trans)
Curve2D
transform
in interface ContinuousCurve2D
transform
in interface Curve2D
transform
in interface Shape2D
trans
- an affine transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |