Classes | Static Public Member Functions | Static Private Member Functions | Static Private Attributes Class Reference

List of all members.


class  Point

Static Public Member Functions

static float area (final Point[] contour)
static boolean isInsideTriangle (final float Ax, final float Ay, final float Bx, final float By, final float Cx, final float Cy, final float Px, final float Py)
static boolean process (final Point[] contour, List< Point > result)

Static Private Member Functions

static boolean snip (Point[] contour, int u, int v, int w, int n, int[] V)

Static Private Attributes

static final float EPSILON = 1e-9f

Detailed Description

Triangulates a contour for rendering as a triangle fan.

Author: (Damon Kohler)
See also:
Efficient Polygon Triangulation

Definition at line 28 of file

Member Function Documentation

static float ( final Point[]  contour) [inline, static]

Compute area of a contour/polygon.

contourthe contour to measure the area of
the area defined by the contour

Definition at line 139 of file

static boolean ( final float  Ax,
final float  Ay,
final float  Bx,
final float  By,
final float  Cx,
final float  Cy,
final float  Px,
final float  Py 
) [inline, static]

Decide if point (Px, Py) is inside triangle defined by ((Ax,Ay), (Bx,By), (Cx,Cy)).

true if the test point lies inside the triangle

Definition at line 154 of file

static boolean ( final Point[]  contour,
List< Point result 
) [inline, static]

Triangulate a contour/polygon.

contourthe vertices of the polygon
resultthe result series of triangles
true on success

Definition at line 60 of file

static boolean ( Point[]  contour,
int  u,
int  v,
int  w,
int  n,
int[]  V 
) [inline, static, private]

Definition at line 176 of file

Member Data Documentation

final float = 1e-9f [static, private]

Definition at line 30 of file

The documentation for this class was generated from the following file:

Author(s): Damon Kohler
autogenerated on Thu Jun 6 2019 21:20:07