API Docs for: 1.6.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

() private

Checks whether a shape is convex

_PointInTriangle

(
  • px
  • py
  • ax
  • ay
  • bx
  • by
  • cx
  • cy
)
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

Triangulate

()

Triangulates shapes for webGL graphic fills