Volume functions
[Standard functions]

Functions for volume of spheres and cones. More...

Functions

CLUspherecluSphereAddSphere (CLUsphere *sf, const CLUsphere *s0, const CLUsphere *s1)
CLUconecluConeAddCone (CLUcone *cf, const CLUcone *c0, const CLUcone *c1)
float cluSphereVolume (const CLUsphere *sphere)
float cluConeVolume (const CLUcone *cone)

Detailed Description


Function Documentation

CLUcone* cluConeAddCone CLUcone cf,
const CLUcone c0,
const CLUcone c1
 

Todo:
Should name be cluConeAdd()
Warning:
Angles are in deg.

Definition at line 649 of file clumaths.c.

References cluDefaultQuaternion(), cluNormalCrossProduct(), cluNormalDotProduct(), cluNormalNormalise(), cluNormalTransform(), cluSetMatrixOrientation(), cluSetQuaternionAxisAngle(), CLUcone::direction, CLUcone::half_angle, and CLUcone::origin.

float cluConeVolume const CLUcone cone  ) 
 

Warning:
Since the CLUcone struct has no explicit height for the cone, the direction vector's magnitude is used.

If the cones half_angle is greater than or equal to 90deg. the function will return infinity.

Definition at line 981 of file clumaths.c.

References cluNormalMagnitude(), CLUcone::direction, and CLUcone::half_angle.

CLUsphere* cluSphereAddSphere CLUsphere sf,
const CLUsphere s0,
const CLUsphere s1
 

Todo:
Check

Should name be cluSphereAdd()

Definition at line 571 of file clumaths.c.

References cluNormalDifference(), cluNormalMagnitude(), cluNormalNormalise(), cluNormalScale(), cluVertexAdd(), CLUsphere::origin, and CLUsphere::radius.


Generated on Thu Dec 27 13:53:42 2007 for CLU by  doxygen 1.4.6