Calculates the centroid in the vertices.
            
    Namespace: 
   SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
| C# | 
|---|
public static Vector3 ComputeCentroid( Vector3[] vertices )  | 
Parameters
- vertices
 - Type: array<
            Vector3
          >[]()[]
The Vector3 vertex array. 
Return Value
Returns the Vector3 vertices centroid (equals to the vector average).
Exceptions
| Exception | Condition | 
|---|---|
| System..::.ArgumentNullException | vertices is nullNothingnullptra null reference (Nothing in Visual Basic). |