public class ConvexPolygon2d extends Polygon2d
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
ConvexPolygon2d() |
ConvexPolygon2d(double[] coords) |
ConvexPolygon2d(Point2d[] pnts) |
Modifier and Type | Method and Description |
---|---|
double |
area() |
int |
pointIsInside(Point2d pnt)
Returns 1 or -1 depending on whether pnt is (strictly) inside or outside
of poly.
|
addVertex, appendVertex, clear, createRenderProps, epsilonEquals, equals, getBounds, getCentroid, getFirstVertex, getLastVertex, getMaxCoordinate, getRenderHints, getRenderProps, getSelection, getVertices, inverseTransform, isConsistent, isEmpty, isSelectable, numSelectionQueriesNeeded, numVertices, prependVertex, prerender, render, render, scan, set, set, set, setRenderProps, shiftVertices, toString, toString, toString, transform, updateBounds, updateBounds
public ConvexPolygon2d()
public ConvexPolygon2d(double[] coords)
public ConvexPolygon2d(Point2d[] pnts)
public double area()
public int pointIsInside(Point2d pnt)