PolyK Class
Based on the Polyk library http://polyk.ivank.net released under MIT licence. This is an amazing lib! slightly modified by Mat Groves (matgroves.com);
Item Index
Methods
Methods
_convex
()
private
Checks whether a shape is convex
_PointInTriangle
(
private
-
px
-
py
-
ax
-
ay
-
bx
-
by
-
cx
-
cy
Checks whether a point is within a triangle
Parameters:
-
px
Numberx coordinate of the point to test
-
py
Numbery coordinate of the point to test
-
ax
Numberx coordinate of the a point of the triangle
-
ay
Numbery coordinate of the a point of the triangle
-
bx
Numberx coordinate of the b point of the triangle
-
by
Numbery coordinate of the b point of the triangle
-
cx
Numberx coordinate of the c point of the triangle
-
cy
Numbery coordinate of the c point of the triangle
Triangulate
()
Triangulates shapes for webGL graphic fills