User Tools

Site Tools


preview:api:polygon

This is an old revision of the document!


polygon

Category: Data structure

Functions


containsPoint

boolean polygon.containsPoint(this, point)

Name Type Description
this polygon
point vec2f

getClosestPoint

vec2f polygon.getClosestPoint(this, point)

Name Type Description
this polygon
point vec2f

vec2f polygon.getClosestPoint(this, point, outPosition)

Name Type Description
this polygon
point vec2f
outPosition float Out argument

distance2

float polygon.distance2(this, point)

Name Type Description
this polygon
point vec2f

distance

float polygon.distance(this, point)

Name Type Description
this polygon
point vec2f

reverseOrder

void polygon.reverseOrder(this)

Name Type Description
this polygon

computeCentroid

vec2f polygon.computeCentroid(this)

Name Type Description
this polygon

computeArea

float polygon.computeArea(this)

Name Type Description
this polygon

computeAbsoluteArea

float polygon.computeAbsoluteArea(this)

Name Type Description
this polygon

isClockWise

boolean polygon.isClockWise(this)

Name Type Description
this polygon

isComplex

boolean polygon.isComplex(this)

Name Type Description
this polygon

getMinMax

void polygon.getMinMax(this, outMin, outMax)

Name Type Description
this polygon
outMin vec2f Out argument
outMax vec2f Out argument
preview/api/polygon.1590164014.txt.gz · Last modified: 2020/05/22 12:13 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki