Computes the center of mass of the hull as a solid body.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public Point CenterOfMass()
Visual Basic (Declaration)
Public Function CenterOfMass As Point
Visual C++
public:
Point^ CenterOfMass()

Return Value

Returns the center of mass of the hull as a solid body.

Remarks

The center of mass of the hull as a solid body is not equal to the center of mass of the hull surface and not equal to the center of the vertices of the hull.

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThe hull has not been computed yet.

See Also