|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.geometry.Polygon2d
maspack.geometry.ConvexPolygon2d
public class ConvexPolygon2d
Field Summary |
---|
Fields inherited from interface maspack.render.GLRenderable |
---|
TRANSLUCENT, TWO_DIMENSIONAL |
Constructor Summary | |
---|---|
ConvexPolygon2d()
|
|
ConvexPolygon2d(double[] coords)
|
|
ConvexPolygon2d(Point2d[] pnts)
|
Method Summary | |
---|---|
double |
area()
|
int |
pointIsInside(Point2d pnt)
Returns 1 or -1 depending on whether pnt is (strictly) inside or outside of poly. |
Methods inherited from class maspack.geometry.Polygon2d |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConvexPolygon2d()
public ConvexPolygon2d(double[] coords)
public ConvexPolygon2d(Point2d[] pnts)
Method Detail |
---|
public double area()
public int pointIsInside(Point2d pnt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |