#include <deMassProp.h>
Collaboration diagram for deMassProp:
Public Member Functions | ||||
deMassProp () | ||||
constructor | ||||
void | zero () | |||
set members to zero | ||||
void | set (const deFloat *mass, const deVector3 *center, const deMatrix3 *inertia) | |||
set members with given values | ||||
void | get (deFloat *mass, deVector3 *center, deMatrix3 *inertia) | |||
get member values | ||||
deInt | isDensity (deFloat m) | |||
indicates if m is a density. | ||||
fetching methods | ||||
return current mass parameters. | ||||
deFloat * | mass () | |||
deMatrix3 * | inertia () | |||
deVector3 * | center () | |||
updating methods | ||||
set general mass/inertia parameters for a body defined in the current reference frame.
| ||||
void | mass (const deFloat m, const deFrame *f=NULL) | |||
void | inertia (const deMatrix3 *inertia, const deFrame *f=NULL) | |||
void | inertia (const deVector3 *diag, const deFrame *f=NULL) | |||
void | inertia (const deFloat Ixx, const deFloat Iyy, const deFloat Izz, const deFrame *f=NULL) | |||
mass/inertia definitions of homogeneous bodies | ||||
specify mass parameters for various homogeneous bodies. With the center of mass located at the current reference frame.
| ||||
void | cylinder (const deFloat mp, const deFloat h, const deFloat r, const deFrame *f=NULL) | |||
void | cone (const deFloat mp, const deFloat h, const deFloat r, const deFrame *f=NULL) | |||
void | pyramid (const deFloat mp, const deFloat a, const deFloat b, const deFloat h, const deFrame *f=NULL) | |||
void | block (const deFloat mp, const deFloat a, const deFloat b, const deFloat c, const deFrame *f=NULL) | |||
void | sphere (const deFloat mp, const deFloat r, const deFrame *f=NULL) | |||
void | hemisphere (const deFloat mp, const deFloat r, const deFrame *f=NULL) | |||
void | ellipsoid (const deFloat mp, const deFloat a, const deFloat b, const deFloat c, const deFrame *f=NULL) | |||
void | rod (const deFloat mp, const deFloat l, const deFrame *f=NULL) | |||
void | disk (const deFloat mp, const deFloat r, const deFrame *f=NULL) | |||
void | plate (const deFloat mp, const deFloat a, const deFloat b, const deFrame *f=NULL) | |||
void | cylinderShell (const deFloat mp, const deFloat h, const deFloat r, const deFrame *f=NULL) | |||
void | coneShell (const deFloat mp, const deFloat h, const deFloat r, const deFrame *f=NULL) | |||
void | sphereShell (const deFloat mp, const deFloat r, const deFrame *f=NULL) | |||
void | hemisphereShell (const deFloat mp, const deFloat r, const deFrame *f=NULL) | |||
resetting methods | ||||
reset mass properties | ||||
void | scale (const deFloat m) |
|
constructor
|
|
Specify the mass parameters to a homogeneous block with center of mass at the current frame.
|
|
return center of mass of object as seen from objects local frame. |
|
Specify the mass parameters to a homogeneous cone with center of mass at the current frame. The center of mass of a cone is located h/4 from base in z
|
|
Specify the mass parameters to a homogeneous infinitely thin cone with no base. The center of mass located at the current frame is (1/3)*h from base in z.
|
|
Specify the mass parameters to a homogeneous cylinder with center of mass at the current frame.
|
|
Specify the mass parameters to a homogeneous infinitely thin cylinder with no caps, with center of mass at the current frame.
|
|
Specify the mass parameters to a homogeneous two dimensional flat disk with center of mass at the current frame. The disk has zero height in the z-axis.
|
|
Specify the mass parameters to a homogeneous ellipsoid with center of mass at the current frame.
|
|
get member values
|
|
Specify the mass parameters to a homogeneous half sphere (hemisphere) with center of mass at the current frame. The center of mass of a hemisphere is located (3/8)*r from base in z
|
|
Specify the mass parameters to a homogeneous infinitely thin half sphere (hemisphere) with no base. The center of mass located at the current frame is r/2 from the base of the hemisphere in the z-axis.
|
|
add an inertia tensor specified by its diagonal (Ixx, Iyy, Izz). |
|
add an inertia tensor specified by its diagonal diag = (Ixx, Iyy, Izz). |
|
add an inertia tensor inertia specified by a 3x3 matrix at the current frame of reference. |
|
return inertia of object as seen from objects local frame. |
|
indicates if m is a density.
|
|
add a point mass of mass m at a point at the origin of the reference frame. Set frame of reference to be used when specifying a objects mass/inertial properties. |
|
return mass of object. |
|
Specify the mass parameters to a homogeneous two dimensional flat square plate with center of mass at the current frame. The plate has zero height in the z-axis.
|
|
Specify the mass parameters to a homogeneous four sided pyramid with center of mass at the current frame. The center of mass of a pyramid is located h/4 from base in z
|
|
Specify the mass parameters to a homogeneous one dimensional rod having total length l with center of mass at the current frame. The center of mass of a rod is located half way along its length.
|
|
homogenously scale the mass properities of a given object until total mass equals m. |
|
set members with given values
|
|
Specify the mass parameters to a homogeneous sphere with center of mass at the current frame.
|
|
Specify the mass parameters to a homogeneous infinitely thin sphere, with center of mass at the current frame.
|
|
set members to zero
|