Package zombie.vehicles
Class Clipper
java.lang.Object
zombie.vehicles.Clipper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAABB
(float x1, float y1, float x2, float y2) void
addAABBBevel
(float x1, float y1, float x2, float y2, float RADIUS) void
addLine
(float x1, float y1, float x2, float y2) void
addPath
(int numPoints, ByteBuffer points, boolean bClip) void
addPolygon
(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) void
clear()
void
clipAABB
(float x1, float y1, float x2, float y2) int
int
generatePolygons
(double delta) int
generateTriangulatePolygons
(int wx, int wy) int
getPolygon
(int index, ByteBuffer vertices) static void
init()
static void
n_init()
int
triangulate
(int index, ByteBuffer vertices)
-
Constructor Details
-
Clipper
public Clipper()
-
-
Method Details
-
init
public static void init() -
clear
public void clear() -
addPath
-
addLine
public void addLine(float x1, float y1, float x2, float y2) -
addAABB
public void addAABB(float x1, float y1, float x2, float y2) -
addAABBBevel
public void addAABBBevel(float x1, float y1, float x2, float y2, float RADIUS) -
addPolygon
public void addPolygon(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) -
clipAABB
public void clipAABB(float x1, float y1, float x2, float y2) -
generatePolygons
public int generatePolygons() -
generatePolygons
public int generatePolygons(double delta) -
getPolygon
-
generateTriangulatePolygons
public int generateTriangulatePolygons(int wx, int wy) -
triangulate
-
n_init
public static void n_init()
-