preview:api:polygon
Table of Contents
polygon
Category: Data structure
Functions
containsPoint
getClosestPoint
vec2f polygon.getClosestPoint(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
vec2f polygon.getClosestPoint(object, point, outPosition)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f | |
outPosition | float | Out argument |
distance
float polygon.distance(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.distance(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
distance2
float polygon.distance2(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.distance2(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
edgeDistance
float polygon.edgeDistance(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.edgeDistance(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
edgeDistance2
float polygon.edgeDistance2(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.edgeDistance2(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
reverseOrder
void polygon.reverseOrder(object)
Name | Type | Description |
---|---|---|
object | polygon |
computeCentroid
computeArea
computeAbsoluteArea
isClockWise
isComplex
getMinMax
void polygon.getMinMax(object, outMin, outMax)
Name | Type | Description |
---|---|---|
object | polygon | |
outMin | vec2f | Out argument |
outMax | vec2f | Out argument |
preview/api/polygon.txt · Last modified: 2023/12/12 12:16 by 127.0.0.1