|
||||||||||
| 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 ContinuousBoundary2D, and one or several ContinousBoundary2D form a Boundary2D.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Method Summary | |
|---|---|
CurveSet2D |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
Curve2D |
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 point)
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. |
double |
getWindingAngle(Point2D point)
Return the angle portion that the curve turn around the given point. |
boolean |
isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
Curve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform. |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getSubCurve, getT0, getT1, isSingular, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
| Method Detail |
|---|
double getWindingAngle(Point2D point)
point - a point of the plane
double getSignedDistance(Point2D point)
point - a point of the plane
double getSignedDistance(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
Curve2D getReverseCurve()
Curve2D
getReverseCurve in interface Curve2DCurveSet2D clip(Box2D box)
Curve2D
clip in interface Curve2Dclip in interface Shape2Dbox - the clipping box
Curve2D transform(AffineTransform2D trans)
Curve2D
transform in interface Curve2Dtransform in interface Shape2Dtrans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||