public class ShapeUtils
extends java.lang.Object
Constructor and Description |
---|
ShapeUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
b2(double t,
double p0,
double p1,
double p2) |
static double |
b3(double t,
double p0,
double p1,
double p2,
double p3) |
static boolean |
isClockWise(java.util.List<Vector2> pts) |
static void |
removeHoles(java.util.List<Vector2> contour,
java.util.List<java.util.List<Vector2>> holes,
java.util.List<Vector2> shape,
java.util.List<Vector2> allpoints,
java.util.List<java.util.List<Vector2>> verts)
Remove holes from the Shape
|
static java.util.List<java.util.List<java.lang.Integer>> |
triangulateShape(java.util.List<Vector2> contour,
java.util.List<java.util.List<Vector2>> holes) |
public static void removeHoles(java.util.List<Vector2> contour, java.util.List<java.util.List<Vector2>> holes, java.util.List<Vector2> shape, java.util.List<Vector2> allpoints, java.util.List<java.util.List<Vector2>> verts)
contour
- the list of contourholes
- the list of holesshape
- the list of shapes, where will be created shape without holesallpoints
- verts
- the list of vertices, where will be created isolated facespublic static java.util.List<java.util.List<java.lang.Integer>> triangulateShape(java.util.List<Vector2> contour, java.util.List<java.util.List<Vector2>> holes)
public static boolean isClockWise(java.util.List<Vector2> pts)
public static double b2(double t, double p0, double p1, double p2)
public static double b3(double t, double p0, double p1, double p2, double p3)