|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OrientedCurve2D
An OrientedCurve2D defines an 'inside' and an 'outside'. It is typically a part of the boundary of a domain. Several OrientedCurve2D form a Contour2D, and one or several Contour2D form a Boundary2D.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
CurveSet2D<? extends OrientedCurve2D> |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
boolean |
isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
OrientedCurve2D |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
double |
signedDistance(double x,
double y)
The same as distanceSigned(Point2D), but by passing 2 double as arguments. |
double |
signedDistance(Point2D point)
Returns the signed distance of the curve to the given point. |
OrientedCurve2D |
transform(AffineTransform2D trans)
Transforms the oriented curve, and returns another oriented curve. |
double |
windingAngle(Point2D point)
Return the angle portion that the curve turn around the given point. |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
asAwtShape, clone, continuousCurves, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, subCurve, t0, t1, 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 windingAngle(Point2D point)
point
- a point of the plane
double signedDistance(Point2D point)
point
- a point of the plane
double signedDistance(double x, double y)
x
- x-coord of a pointy
- y-coord of a point
boolean isInside(Point2D pt)
pt
- a point in the plane
OrientedCurve2D reverse()
Curve2D
reverse
in interface Curve2D
CurveSet2D<? extends OrientedCurve2D> clip(Box2D box)
Curve2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
OrientedCurve2D transform(AffineTransform2D trans)
transform
in interface Curve2D
transform
in interface Shape2D
trans
- an affine transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |