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

math/volume.cpp File Reference

#include "volume.h"
#include <math/real.h>

Include dependency graph for volume.cpp:

Include 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

Definition in file volume.cpp.


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