public interface CirculinearElement2D extends CirculinearContinuousCurve2D, SmoothOrientedCurve2D
Circulinear elements are lowest level of circulinear curve: each circulinear curve can be divided into a set of circulinear elements.
Circulinear elements can be either linear elements (implementations of LinearShape2D), or circular elements (circle or circle arcs).
Modifier and Type | Method and Description |
---|---|
CurveSet2D |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape.
|
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. |
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.
|
getSmoothPieces
getContinuousCurves, getLength, getLength, getPosition
getBuffer
transform
appendPath, getAsPolyline, getLeftTangent, getRightTangent, isClosed
getSignedDistance, getSignedDistance, getWindingAngle, isInside
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
transform
getCurvature, getTangent
Curve2D getParallel(double d)
CirculinearCurve2D
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.getParallel
in interface CirculinearContinuousCurve2D
getParallel
in interface CirculinearCurve2D
getParallel
in interface ContinuousCirculinearCurve2D
d
- the distance between the original curve and he parallel curve.Curve2D transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearContinuousCurve2D
transform
in interface CirculinearCurve2D
transform
in interface CirculinearShape2D
transform
in interface ContinuousCirculinearCurve2D
inv
- the circle inversionCurveSet2D clip(Box2D box)
Shape2D
clip
in interface CirculinearContinuousCurve2D
clip
in interface CirculinearCurve2D
clip
in interface ContinuousCirculinearCurve2D
clip
in interface ContinuousCurve2D
clip
in interface ContinuousOrientedCurve2D
clip
in interface Curve2D
clip
in interface OrientedCurve2D
clip
in interface Shape2D
clip
in interface SmoothCurve2D
clip
in interface SmoothOrientedCurve2D
box
- the clipping boxCurve2D getSubCurve(double t0, double t1)
Curve2D
getSubCurve
in interface CirculinearContinuousCurve2D
getSubCurve
in interface CirculinearCurve2D
getSubCurve
in interface ContinuousCirculinearCurve2D
getSubCurve
in interface ContinuousCurve2D
getSubCurve
in interface ContinuousOrientedCurve2D
getSubCurve
in interface Curve2D
getSubCurve
in interface SmoothCurve2D
getSubCurve
in interface SmoothOrientedCurve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curveCurve2D getReverseCurve()
Curve2D
getReverseCurve
in interface CirculinearContinuousCurve2D
getReverseCurve
in interface CirculinearCurve2D
getReverseCurve
in interface ContinuousCirculinearCurve2D
getReverseCurve
in interface ContinuousCurve2D
getReverseCurve
in interface ContinuousOrientedCurve2D
getReverseCurve
in interface Curve2D
getReverseCurve
in interface OrientedCurve2D
getReverseCurve
in interface SmoothCurve2D
getReverseCurve
in interface SmoothOrientedCurve2D
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.