|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectmath.geom2d.curve.CurveSet2D<T>
math.geom2d.curve.CurveArray2D<T>
math.geom2d.curve.PolyCurve2D<T>
math.geom2d.domain.PolyOrientedCurve2D<T>
public class PolyOrientedCurve2D<T extends ContinuousOrientedCurve2D>
A PolyOrientedCurve2D is a set of piecewise smooth curve arcs, such that the end of a curve is the beginning of the next curve, and such that they do not intersect nor self-intersect.
| Field Summary |
|---|
| Fields inherited from class math.geom2d.curve.PolyCurve2D |
|---|
closed |
| Fields inherited from class math.geom2d.curve.CurveSet2D |
|---|
curves |
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
PolyOrientedCurve2D()
|
|
PolyOrientedCurve2D(Collection<? extends T> curves)
|
|
PolyOrientedCurve2D(Collection<? extends T> curves,
boolean closed)
|
|
PolyOrientedCurve2D(int size)
|
|
PolyOrientedCurve2D(T[] curves)
|
|
PolyOrientedCurve2D(T[] curves,
boolean closed)
|
|
| Method Summary | |
|---|---|
CurveSet2D<? extends ContinuousOrientedCurve2D> |
clip(Box2D box)
Clip the PolyCurve2D by a box. |
PolyOrientedCurve2D<? extends ContinuousOrientedCurve2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
double |
getSignedDistance(double x,
double y)
The same as getSignedDistance(Point2D), but by passing 2 double as arguments. |
double |
getSignedDistance(Point2D p)
Get the signed distance of the curve to the given point: this distance is positive if the point lies outside the shape, and is negative if the point lies inside the shape. |
PolyOrientedCurve2D<? extends ContinuousOrientedCurve2D> |
getSubCurve(double t0,
double t1)
Return an instance of PolyOrientedCurve2D. |
double |
getWindingAngle(Point2D point)
Return the angle portion that the curve turn around the given point. |
boolean |
isInside(Point2D point)
Returns true if the point is 'inside' the domain bounded by the curve. |
PolyOrientedCurve2D<?> |
transform(AffineTransform2D trans)
Transforms each curve, and build a new CurveArray2D with the set of transformed curves. |
| Methods inherited from class math.geom2d.curve.PolyCurve2D |
|---|
appendPath, draw, equals, getAsPolyline, getContinuousCurves, getGeneralPath, getLeftTangent, getRightTangent, getSmoothPieces, isClosed, setClosed, wrapCurve |
| Methods inherited from class math.geom2d.curve.CurveArray2D |
|---|
addCurve, clearCurves, clone, contains, contains, containsCurve, getAsAWTShape, getBoundingBox, getCurve, getCurveIndex, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGlobalPosition, getChildCurve, getIntersections, getLastCurve, getLastPoint, getLocalPosition, getPoint, getPosition, getSingularPoints, getT0, getT1, isBounded, isEmpty, isSingular, iterator, project, removeCurve |
| Methods inherited from class math.geom2d.curve.CurveSet2D |
|---|
fromUnitSegment, toUnitSegment |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
|---|
appendPath, getAsPolyline, getLeftTangent, getRightTangent, getSmoothPieces, isClosed |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
| Constructor Detail |
|---|
public PolyOrientedCurve2D()
public PolyOrientedCurve2D(int size)
public PolyOrientedCurve2D(T[] curves)
public PolyOrientedCurve2D(T[] curves,
boolean closed)
public PolyOrientedCurve2D(Collection<? extends T> curves)
public PolyOrientedCurve2D(Collection<? extends T> curves,
boolean closed)
| Method Detail |
|---|
public double getWindingAngle(Point2D point)
OrientedCurve2D
getWindingAngle in interface OrientedCurve2Dpoint - a point of the plane
public double getSignedDistance(Point2D p)
OrientedCurve2D
getSignedDistance in interface OrientedCurve2Dp - a point of the plane
public double getSignedDistance(double x,
double y)
OrientedCurve2D
getSignedDistance in interface OrientedCurve2Dx - x-coord of a pointy - y-coord of a point
public boolean isInside(Point2D point)
OrientedCurve2D
isInside in interface OrientedCurve2Dpoint - a point in the plane
public PolyOrientedCurve2D<? extends ContinuousOrientedCurve2D> getReverseCurve()
Curve2D
getReverseCurve in interface ContinuousCurve2DgetReverseCurve in interface Curve2DgetReverseCurve in interface ContinuousOrientedCurve2DgetReverseCurve in interface OrientedCurve2DgetReverseCurve in class PolyCurve2D<T extends ContinuousOrientedCurve2D>
public PolyOrientedCurve2D<? extends ContinuousOrientedCurve2D> getSubCurve(double t0,
double t1)
getSubCurve in interface ContinuousCurve2DgetSubCurve in interface Curve2DgetSubCurve in interface ContinuousOrientedCurve2DgetSubCurve in class PolyCurve2D<T extends ContinuousOrientedCurve2D>t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
public CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
clip in interface ContinuousCurve2Dclip in interface Curve2Dclip in interface ContinuousOrientedCurve2Dclip in interface OrientedCurve2Dclip in interface Shape2Dclip in class PolyCurve2D<T extends ContinuousOrientedCurve2D>box - the clipping box
public PolyOrientedCurve2D<?> transform(AffineTransform2D trans)
CurveArray2D
transform in interface ContinuousCurve2Dtransform in interface Curve2Dtransform in interface ContinuousOrientedCurve2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class PolyCurve2D<T extends ContinuousOrientedCurve2D>trans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||