MathEngine
Home Page       Structures       File List       Functions and Macros      

MdtUtilities.h File Reference

Utility API functions. More...

#include "MePrecision.h"
#include "MdtTypes.h"

Functions

void MdtConvertVector (const MdtBodyID from_body, const MeVector3 f, const MdtBodyID to_body, MeVector3 t)
 Converts a vector from the local coordinate system of one body to another. More...

void MdtConvertPositionVector (const MdtBodyID from_body, const MeVector3 f, const MdtBodyID to_body, MeVector3 t)
 Converts a position from the local coordinate system of one body to another. More...

void MdtMakeInertiaTensorSphere (const MeReal mass, const MeReal radius, MeMatrix3 i)
 Creates the inertia tensors of a sphere. More...

void MdtMakeInertiaTensorBox (const MeReal mass, const MeReal lx, const MeReal ly, const MeReal lz, MeMatrix3 i)
 Creates the inertia tensors of a box given the full length of each side. More...


Detailed Description

Utility API functions.


Function Documentation

void MdtConvertPositionVector ( MdtBodyID from_body,
MeVector3 f,
MdtBodyID to_body,
MeVector3 t )

Converts a position from the local coordinate system of one body to another.

A null body pointer indicates world space.

void MdtConvertVector ( MdtBodyID from_body,
MeVector3 f,
MdtBodyID to_body,
MeVector3 t )

Converts a vector from the local coordinate system of one body to another.

A null body pointer indicates world space.

void MdtMakeInertiaTensorBox ( MeReal mass,
MeReal lx,
MeReal ly,
MeReal lz,
MeMatrix3 i )

Creates the inertia tensors of a box given the full length of each side.

void MdtMakeInertiaTensorSphere ( MeReal mass,
MeReal radius,
MeMatrix3 i )

Creates the inertia tensors of a sphere.


MathEngine Dynamics Toolkit - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:49 2000

Copyright MathEngine PLC 2000, all rights reserved.