|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CirculinearCurve2D
Circulinear curve are composed of linear and/or circular elements. Linear elements are line segments, straight lines, rays... Circular elements are circles and circle arcs.
Circulinear curves provide a convenient way to store result of geometric operation like buffer computation. Moreover, the set of circulinear curves is stable with respect to circle inversion.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
CurveSet2D |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape. |
Collection<? extends CirculinearContinuousCurve2D> |
getContinuousCurves()
Returns the collection of continuous circulinear curves which constitute this curve. |
double |
getLength()
|
double |
getLength(double pos)
|
Curve2D |
getParallel(double d)
Creates a new curve, formed by the points with parameterization: p(t) = c(t) + d*n(t)/|n(t)| , with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n.In the case of a continuous curve formed by several smooth circulinear elements, the parallels of contiguous elements are joined by a circle arc. |
double |
getPosition(double length)
|
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. |
Curve2D |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
getBuffer |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project, transform |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Method Detail |
---|
double getLength()
double getLength(double pos)
double getPosition(double length)
Curve2D getParallel(double d)
p(t) = c(t) + d*n(t)/|n(t)|
, with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n.
d
- the distance between the original curve and he parallel curve.
Curve2D transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearShape2D
inv
- the circle inversion
Collection<? extends CirculinearContinuousCurve2D> getContinuousCurves()
getContinuousCurves
in interface Curve2D
CurveSet2D clip(Box2D box)
Shape2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
Curve2D getSubCurve(double t0, double t1)
Curve2D
getSubCurve
in interface Curve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
Curve2D getReverseCurve()
Curve2D
getReverseCurve
in interface Curve2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |