Category: Data structure
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 |
float polygon.distance(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.distance(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
float polygon.distance2(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.distance2(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
float polygon.edgeDistance(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.edgeDistance(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
float polygon.edgeDistance2(object, point)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f |
float polygon.edgeDistance2(object, polygon)
Name | Type | Description |
---|---|---|
object | polygon | |
polygon | polygon |
void polygon.reverseOrder(object)
Name | Type | Description |
---|---|---|
object | polygon |
void polygon.getMinMax(object, outMin, outMax)
Name | Type | Description |
---|---|---|
object | polygon | |
outMin | vec2f | Out argument |
outMax | vec2f | Out argument |