|
||||||||||
| 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, defaultClipWindow, EMPTY_SET |
| Method Summary | |
|---|---|
CurveSet2D<? extends OrientedCurve2D> |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
OrientedCurve2D |
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(java.awt.geom.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(java.awt.geom.Point2D point)
Return the angle portion that the curve turn around the given point. |
boolean |
isInside(java.awt.geom.Point2D pt)
return true if the point is 'inside' the domain bounded by the curve. |
OrientedCurve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform. |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPoint, getPosition, getSubCurve, getT0, getT1, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
getBoundingBox, getDistance, getDistance, isBounded |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Method Detail |
|---|
double getWindingAngle(java.awt.geom.Point2D point)
point - a point of the plane
double getSignedDistance(java.awt.geom.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(java.awt.geom.Point2D pt)
pt - a point in the plane
OrientedCurve2D getReverseCurve()
Curve2D
getReverseCurve in interface Curve2DCurveSet2D<? extends OrientedCurve2D> clip(Box2D box)
Curve2D
clip in interface Curve2Dclip in interface Shape2Dbox - the clipping box
OrientedCurve2D 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 | |||||||||