| MassHelperGetMass Method |
Gets the mass properties of the given triangle mesh for a density of 1.
Namespace: DigitalRune.PhysicsAssembly: 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
)
Public Shared Sub GetMass (
mesh As ITriangleMesh,
<OutAttribute> ByRef mass As Single,
<OutAttribute> ByRef centerOfMass As Vector3F,
<OutAttribute> ByRef inertia As Matrix33F
)
public:
static void GetMass(
ITriangleMesh^ mesh,
[OutAttribute] float% mass,
[OutAttribute] Vector3F% centerOfMass,
[OutAttribute] Matrix33F% inertia
)
static member GetMass :
mesh : ITriangleMesh *
mass : float32 byref *
centerOfMass : Vector3F byref *
inertia : Matrix33F byref -> unit
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 See Also