MathEngine
Home Page       Structures       File List       Functions and Macros      

McdSphere.h File Reference

The sphere primitive geometry type. More...

#include "McdFrame.h"

Typedefs

typedef McdGeometryID McdSphereID
 McdSphere is a concrete McdGeometry type.


Functions

void McdSphereRegisterType ()
 Register the McdSphere geometry type with the Mcd system. More...

int McdSphereGetTypeID ( )
 Returns a unique ID identifying the McdSphere geometry type.

McdSphereID McdSphereCreate ( McdReal r )
 Create a new sphere geometry of radius r.

void McdSphereSetRadius ( McdSphereID g, McdReal r )
 Set the radius of the sphere.

McdReal McdSphereGetRadius ( McdSphereID g )
 Return the sphere's radius.


Detailed Description

The sphere primitive geometry type.


Function Documentation

void McdSphereRegisterType ( )

Register the McdSphere geometry type with the Mcd system.

McdSphere is often registered implicitly via McdPrimitivesRegisterTypes() or McdSphereBoxPlaneRegisterTypes(), in which case it is an error to call McdBoxRegisterType() explicitly as well.


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

Copyright MathEngine PLC 2000, all rights reserved.