public class ConvexPoly2d
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ConvexPoly2d.Vertex2d |
Modifier and Type | Method and Description |
---|---|
ConvexPoly2d.Vertex2d |
addVertex(double x,
double y) |
ConvexPoly2d.Vertex2d |
addVertex(Point2d p) |
void |
clear() |
void |
computeCentroid(Vector2d cent) |
boolean |
epsilonEquals(ConvexPoly2d poly,
double eps) |
ConvexPoly2d.Vertex2d |
firstVertex() |
double |
getTolerance() |
void |
intersectHalfPlane(double nx,
double ny,
double d)
Intersects this convex polygon with a half plane defined by
n^T x - d >= 0 . |
boolean |
isEmpty() |
int |
numVertices() |
void |
removeVertex(ConvexPoly2d.Vertex2d v) |
void |
setTolerance(double tol) |
java.lang.String |
toString(java.lang.String fmtStr) |
void |
transform(AffineTransform2dBase T) |
public double getTolerance()
public void setTolerance(double tol)
public void clear()
public ConvexPoly2d.Vertex2d addVertex(double x, double y)
public ConvexPoly2d.Vertex2d addVertex(Point2d p)
public ConvexPoly2d.Vertex2d firstVertex()
public void removeVertex(ConvexPoly2d.Vertex2d v)
public boolean isEmpty()
public int numVertices()
public void intersectHalfPlane(double nx, double ny, double d)
n^T x - d >= 0
.public boolean epsilonEquals(ConvexPoly2d poly, double eps)
public void transform(AffineTransform2dBase T)
public void computeCentroid(Vector2d cent)
public java.lang.String toString(java.lang.String fmtStr)