MathEngine
Home Page       Structures       File List       Functions and Macros      

McdCone.h File Reference

The cone primitive geometry type. More...

#include "McdFrame.h"

Typedefs

typedef McdGeometryID McdConeID
 McdCone is a concrete McdGeometry type.


Functions

void McdConeRegisterType ()
 Register the McdCone geometry type with the Mcd system. More...

McdConeID McdConeCreate ( McdReal length, McdReal lowerRadius)
 Create a cone geometry. More...

McdReal McdConeGetLength ( McdConeID )
 Returns the cone's length.

McdReal McdConeGetLowerRadius ( McdConeID )
 Returns the cone's lower radius.

McdReal McdConeGetZOffset ( McdConeID )
 Returns the distance from the z=0 plane to the the cone's base, which lies below it. More...


Detailed Description

The cone primitive geometry type.


Function Documentation

McdConeID McdConeCreate ( McdReal length,
McdReal lowerRadius )

Create a cone geometry.

In its local coordinate system, the cone's principal axis is aligned with the z-axis. The cone's center-of-mass is at the origin: this means that the base of the cone is below the z=0 axis. The amount of this offset is given by McdConeGetZOffset().

See also:
McdConeGetZOffset()

McdReal McdConeGetZOffset ( McdConeID g )

Returns the distance from the z=0 plane to the the cone's base, which lies below it.

The cone is positioned like this so that its origin lies at its center of mass.

void McdConeRegisterType ( )

Register the McdCone geometry type with the Mcd system.

McdCone is often registered implicitly via McdPrimitivesRegisterTypes(), in which case it is an error to call McdConeRegisterType() explicitly as well.


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

Copyright MathEngine PLC 2000, all rights reserved.