MathHelperPolygonCenter Method
|
Determines the center of a polygon.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static Vector2 PolygonCenter(
Vector2[] Polygon
)
Public Shared Function PolygonCenter (
Polygon As Vector2()
) As Vector2
public:
static Vector2 PolygonCenter(
array<Vector2>^ Polygon
)
static member PolygonCenter :
Polygon : Vector2[] -> Vector2
STATIC METHOD PolygonCenter(
Polygon AS Vector2[]
) AS Vector2
Parameters
- Polygon
- Type: DXFReaderNETVector2
the vertices of polygon.
Return Value
Type:
Vector2the center point of the polygon
See Also