Calculates the centroid in the vertices.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static Vector3 ComputeCentroid(
	IXVertexArray vertices
)

Parameters

vertices
Type: SGP.XSpace..::.IXVertexArray
The Vector3 vertex array.

Return Value

Returns the Vector3 vertices centroid (equals to the vector average).

Exceptions

ExceptionCondition
System..::.ArgumentNullException vertices is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also