Click or drag to resize
DigitalRuneMassHelperGetMass Method
Gets the mass properties of the given triangle mesh for a density of 1.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public static void GetMass(
	ITriangleMesh mesh,
	out float mass,
	out Vector3F centerOfMass,
	out Matrix33F inertia
)

Parameters

mesh
Type: DigitalRune.Geometry.MeshesITriangleMesh
The mesh.
mass
Type: SystemSingle
The mass.
centerOfMass
Type: DigitalRune.Mathematics.AlgebraVector3F
The center of mass.
inertia
Type: DigitalRune.Mathematics.AlgebraMatrix33F
The inertia matrix.
Exceptions
ExceptionCondition
ArgumentNullExceptionmesh is .
See Also