math.geom2d.curve
Interface SmoothCurve2D
- All Superinterfaces:
- ContinuousCurve2D, Curve2D, java.awt.Shape, Shape2D
- All Known Subinterfaces:
- SmoothOrientedCurve2D
- All Known Implementing Classes:
- BezierCurve2D, Circle2D, CircleArc2D, Ellipse2D, EllipseArc2D, HyperbolaBranch2D, HyperbolaBranchArc2D, LineArc2D, LineObject2D, LineSegment2D, Parabola2D, ParabolaArc2D, Ray2D, StraightLine2D, StraightObject2D
public interface SmoothCurve2D
- extends ContinuousCurve2D
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.
| Methods inherited from interface java.awt.Shape |
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
getTangent
Vector2D getTangent(double t)
getCurvature
double getCurvature(double t)
getReverseCurve
SmoothCurve2D getReverseCurve()
- Description copied from interface:
Curve2D
- Returns the curve with same trace on the plane with parametrization
in reverse order.
- Specified by:
getReverseCurve in interface ContinuousCurve2D- Specified by:
getReverseCurve in interface Curve2D
getSubCurve
SmoothCurve2D getSubCurve(double t0,
double t1)
- Description copied from interface:
Curve2D
- Returns a portion of the original curve, delimited by two positions on
the curve.
- Specified by:
getSubCurve in interface ContinuousCurve2D- Specified by:
getSubCurve in interface Curve2D
- Parameters:
t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
- Returns:
- the portion of original curve comprised between t0 and t1.
clip
CurveSet2D<? extends SmoothCurve2D> clip(Box2D box)
- Description copied from interface:
Curve2D
- When a curve is clipped, the result is a set of curves.
- Specified by:
clip in interface ContinuousCurve2D- Specified by:
clip in interface Curve2D- Specified by:
clip in interface Shape2D
- Parameters:
box - the clipping box
- Returns:
- the clipped shape
transform
SmoothCurve2D transform(AffineTransform2D trans)
- Description copied from interface:
Curve2D
- Transforms the curve by an affine transform. The result is an instance
of Curve2D.
- Specified by:
transform in interface ContinuousCurve2D- Specified by:
transform in interface Curve2D- Specified by:
transform in interface Shape2D
- Parameters:
trans - an affine transform
- Returns:
- the transformed shape