API Docs for: 2.0.0
Show:

PolyK Class

Module: PIXI

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

_convex

() Boolean private

Checks whether a shape is convex

Returns:

Boolean:

_PointInTriangle

(
  • px
  • py
  • ax
  • ay
  • bx
  • by
  • cx
  • cy
)
Boolean private

Checks whether a point is within a triangle

Parameters:

  • px Number

    x coordinate of the point to test

  • py Number

    y coordinate of the point to test

  • ax Number

    x coordinate of the a point of the triangle

  • ay Number

    y coordinate of the a point of the triangle

  • bx Number

    x coordinate of the b point of the triangle

  • by Number

    y coordinate of the b point of the triangle

  • cx Number

    x coordinate of the c point of the triangle

  • cy Number

    y coordinate of the c point of the triangle

Returns:

Boolean:

Triangulate

()

Triangulates shapes for webGL graphic fills.