public interface OrientedCurve2D extends Curve2D
Modifier and Type | Method and Description |
---|---|
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.
|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getSubCurve, getT0, getT1, isSingular, project
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
double getWindingAngle(Point2D point)
point
- a point of the planedouble getSignedDistance(Point2D point)
point
- a point of the planedouble getSignedDistance(double x, double y)
x
- x-coord of a pointy
- y-coord of a pointboolean isInside(Point2D pt)
pt
- a point in the planeCurve2D getReverseCurve()
Curve2D
getReverseCurve
in interface Curve2D
CurveSet2D clip(Box2D box)
Curve2D
Curve2D transform(AffineTransform2D trans)
Curve2D
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.