|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Polygon | |
---|---|
org.jbox2d.util.nonconvex | This package (currently non-functional) will handle convex decomposition of polygons. |
Uses of Polygon in org.jbox2d.util.nonconvex |
---|
Methods in org.jbox2d.util.nonconvex that return Polygon | |
---|---|
static Polygon |
Polygon.convexHull(float[] cloudX,
float[] cloudY,
int nVert)
|
static Polygon |
Polygon.convexHull(Vec2[] v,
int nVert)
Find the convex hull of a point cloud using "Gift-wrap" algorithm - start with an extremal point, and walk around the outside edge by testing angles. |
static Polygon |
Polygon.traceEdge(Polygon p)
|
Methods in org.jbox2d.util.nonconvex with parameters of type Polygon | |
---|---|
static int |
Polygon.decomposeConvex(Polygon p,
Polygon[] results,
int maxPolys)
Decomposes a non-convex polygon into a number of convex polygons, up to maxPolys (remaining pieces are thrown out, but the total number is returned, so the return value can be greater than maxPolys). |
static int |
Polygon.decomposeConvex(Polygon p,
Polygon[] results,
int maxPolys)
Decomposes a non-convex polygon into a number of convex polygons, up to maxPolys (remaining pieces are thrown out, but the total number is returned, so the return value can be greater than maxPolys). |
static void |
Polygon.decomposeConvexAndAddTo(Polygon p,
Body bd,
PolygonDef prototype)
Decomposes a polygon into convex polygons and adds all pieces to a b2BodyDef using a prototype b2PolyDef. |
static int |
Polygon.polygonizeTriangles(org.jbox2d.util.nonconvex.Triangle[] triangulated,
int triangulatedLength,
Polygon[] polys,
int polysLength)
Turns a list of triangles into a list of convex polygons. |
static void |
Polygon.reversePolygon(Polygon p)
|
void |
Polygon.set(Polygon p)
|
static Polygon |
Polygon.traceEdge(Polygon p)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |