|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.curve.AbstractContinuousCurve2D math.geom2d.curve.AbstractSmoothCurve2D
public abstract class AbstractSmoothCurve2D
Provides a base implementation for smooth curves.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
AbstractSmoothCurve2D()
|
Method Summary | |
---|---|
abstract SmoothCurve2D |
clone()
Overrides Object declaration to ensure Curve2D implementation are cloned as Curve2D. |
boolean |
isSingular(double pos)
Returns always false, as a smooth curve does not have singular points by definition. |
Vector2D |
leftTangent(double t)
Computes the left tangent at the given position. |
Vector2D |
normal(double t)
Returns the normal vector of the curve at the given position. |
Vector2D |
rightTangent(double t)
Computes the right tangent at the given position. |
java.util.Collection<Point2D> |
singularPoints()
Returns an empty set of Point2D, as a smooth curve does not have singular points by definition. |
java.util.Collection<? extends SmoothCurve2D> |
smoothPieces()
Returns a set of smooth curves. |
java.util.Collection<Point2D> |
vertices()
Returns a set of Point2D, containing the extremities of the curve if they are not infinite. |
Methods inherited from class math.geom2d.curve.AbstractContinuousCurve2D |
---|
asAwtShape, asPolyline, continuousCurves, draw, firstPoint, lastPoint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.curve.SmoothCurve2D |
---|
clip, reverse, subCurve, tangent, transform |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, asPolyline, curvature, isClosed |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
asAwtShape, continuousCurves, draw, firstPoint, getT0, getT1, intersections, lastPoint, point, position, project, t0, t1 |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Constructor Detail |
---|
public AbstractSmoothCurve2D()
Method Detail |
---|
public Vector2D leftTangent(double t)
ContinuousCurve2D
t
, the result is the
same as the tangent computed for the corresponding smooth curve, and
is equal to the result of rightTangent(double).
If the position t
corresponds to a singular point, the
tangent of the smooth portion before t
is computed.
leftTangent
in interface ContinuousCurve2D
t
- the position on the curve
public Vector2D rightTangent(double t)
ContinuousCurve2D
t
, the result is the
same as the tangent computed for the corresponding smooth curve, and
is equal to the result of leftTangent(double).
If the position t
corresponds to a singular point, the
tangent of the smooth portion after t
is computed.
rightTangent
in interface ContinuousCurve2D
t
- the position on the curve
public Vector2D normal(double t)
SmoothCurve2D
normal
in interface SmoothCurve2D
t
- a position on the curve
SmoothCurve2D.tangent(double)
public java.util.Collection<? extends SmoothCurve2D> smoothPieces()
ContinuousCurve2D
smoothPieces
in interface ContinuousCurve2D
public java.util.Collection<Point2D> singularPoints()
singularPoints
in interface Curve2D
Curve2D.singularPoints()
public java.util.Collection<Point2D> vertices()
vertices
in interface Curve2D
Curve2D.vertices()
public boolean isSingular(double pos)
isSingular
in interface Curve2D
pos
- the position of the point on the curve
Curve2D.isSingular(double)
public abstract SmoothCurve2D clone()
Curve2D
clone
in interface Curve2D
clone
in class AbstractContinuousCurve2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |