|
||||||||||
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. They accept first and second derivative at every point, and can be drawn with a parametric representation for every values of t comprised between T0 and T1. Every Curve2D is a compound of several SmoothCurve2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
CurveSet2D |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
double |
getCurvature(double t)
|
Curve2D |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
Curve2D |
getSubCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
Vector2D |
getTangent(double t)
|
Curve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform. |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, getAsPolyline, getLeftTangent, getRightTangent, getSmoothPieces, isClosed |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Method Detail |
---|
Vector2D getTangent(double t)
double getCurvature(double t)
Curve2D getReverseCurve()
Curve2D
getReverseCurve
in interface ContinuousCurve2D
getReverseCurve
in interface Curve2D
Curve2D getSubCurve(double t0, double t1)
Curve2D
getSubCurve
in interface ContinuousCurve2D
getSubCurve
in interface Curve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
CurveSet2D clip(Box2D box)
Curve2D
clip
in interface ContinuousCurve2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
Curve2D 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 |