|
||||||||||
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<? extends CirculinearCurve2D> |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape. |
java.util.Collection<? extends CirculinearContinuousCurve2D> |
continuousCurves()
Returns the collection of continuous circulinear curves which constitute this curve. |
double |
length()
|
double |
length(double pos)
|
CirculinearCurve2D |
parallel(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. |
double |
position(double distance)
|
CirculinearCurve2D |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
CirculinearCurve2D |
subCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
CirculinearCurve2D |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
buffer |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, transform, 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 |
---|
double length()
double length(double pos)
double position(double distance)
CirculinearCurve2D parallel(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.
CirculinearCurve2D transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearShape2D
inv
- the circle inversion
java.util.Collection<? extends CirculinearContinuousCurve2D> continuousCurves()
continuousCurves
in interface Curve2D
CurveSet2D<? extends CirculinearCurve2D> clip(Box2D box)
Shape2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
CirculinearCurve2D subCurve(double t0, double t1)
Curve2D
subCurve
in interface Curve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
CirculinearCurve2D reverse()
Curve2D
reverse
in interface Curve2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |