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 |
vec2f polygon.getClosestPoint(object, point, outSegmentId, outTOnSegment)
Name | Type | Description |
---|---|---|
object | polygon | |
point | vec2f | |
outSegmentId | integer_and_unsigned_integer | Out argument |
outTOnSegment | 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 |
boolean polygon.tryComputeCentroid(object, outCentroid)
Name | Type | Description |
---|---|---|
object | polygon | |
outCentroid | vec2f | Out argument |
void polygon.getMinMax(object, outMin, outMax)
Name | Type | Description |
---|---|---|
object | polygon | |
outMin | vec2f | Out argument |
outMax | vec2f | Out argument |