public class ConvexPolygonIntersector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ConvexPolygonIntersector.Listener |
Modifier and Type | Field and Description |
---|---|
static double |
AUTOMATIC
Specfies that distance tolerances should be computed automatically.
|
Constructor and Description |
---|
ConvexPolygonIntersector() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ConvexPolygonIntersector.Listener l) |
double |
getDistanceTolerance()
Gets the distance tolerance.
|
ConvexPolygon2d |
intersect(ConvexPolygon2d polyP,
ConvexPolygon2d polyQ) |
int |
intersectLine(double[] lam,
ConvexPolygon2d poly,
Point2d q0,
Vector2d u) |
void |
removeListener(ConvexPolygonIntersector.Listener l) |
void |
setDistanceTolerance(double tol)
Sets the distance tolerance.
|
public static final double AUTOMATIC
public void addListener(ConvexPolygonIntersector.Listener l)
public void removeListener(ConvexPolygonIntersector.Listener l)
public void setDistanceTolerance(double tol)
AUTOMATIC
, then the distance tolerance is computed automatically from the
data.tol
- distance tolerancepublic double getDistanceTolerance()
setDistanceTolerance(double)
public ConvexPolygon2d intersect(ConvexPolygon2d polyP, ConvexPolygon2d polyQ)
public int intersectLine(double[] lam, ConvexPolygon2d poly, Point2d q0, Vector2d u)