Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

math/volume.h File Reference

Volume calculation. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

double sphereVolume (const double radius)
 Sphere Volume.

double cylinderVolume (const double radius, const double height)
 Cylinder Volume.

double coneVolume (const double radius, const double height)
 Cone Volume.

double boxVolume (const double width, const double height, const double depth)
 Box Volume.


Detailed Description

Volume calculation.

Formulas and explanation: http://thesaurus.maths.org/

Definition in file volume.h.


Function Documentation

double sphereVolume const double    radius
 

Sphere Volume.

Parameters:
radius  radius of sphere

Definition at line 9 of file volume.cpp.

Referenced by GlutSphere::volume().

double cylinderVolume const double    radius,
const double    height
 

Cylinder Volume.

Parameters:
radius  radius of cylinder
height  height of cylinder

Definition at line 14 of file volume.cpp.

Referenced by GlutCylinder::volume().

double coneVolume const double    radius,
const double    height
 

Cone Volume.

Parameters:
radius  radius of cone
height  height of cone

Definition at line 19 of file volume.cpp.

Referenced by GlutCone::volume().

double boxVolume const double    width,
const double    height,
const double    depth
 

Box Volume.

Parameters:
width  width of box
height  height of box
depth  depth of box

Definition at line 24 of file volume.cpp.

Referenced by GlutCube::volume().


Generated on Tue Nov 5 11:11:27 2002 for GLT by doxygen1.2.18