Calculates the centroid of the v1, v2, v3 vertices.

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

Syntax

C#
public static Vector3 ComputeCentroid(
	Vector3 v1,
	Vector3 v2,
	Vector3 v3
)

Parameters

v1
Type: Vector3
First Vector3 vertex.
v2
Type: Vector3
Second Vector3 vertex.
v3
Type: Vector3
Third Vector3 vertex.

Return Value

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

See Also