Computes the center of mass of the hull as a solid body.
Namespace:
ceometric.ComputationalGeometryAssembly: 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
Exception | Condition |
---|---|
System..::.InvalidOperationException | The hull has not been computed yet. |