Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::Cylinder Class Reference

Right cylinder. More...

#include <Cylinder.h>

List of all members.

Public Member Functions

float area () const
Line axis () const
Vector3 center () const
bool contains (const Vector3 &p) const
 Cylinder (const Vector3 &_p1, const Vector3 &_p2, float _r)
 Cylinder (class BinaryInput &b)
 Cylinder ()
void deserialize (class BinaryInput &b)
void getBounds (AABox &out) const
void getRandomSurfacePoint (Vector3 &P, Vector3 &N) const
void getReferenceFrame (class CoordinateFrame &cframe) const
float height () const
const Vector3point (int i) const
float radius () const
Vector3 randomInteriorPoint () const
void serialize (class BinaryOutput &b) const
float volume () const


Detailed Description

Right cylinder.


Constructor & Destructor Documentation

G3D::Cylinder::Cylinder (  ) 

Uninitialized.

G3D::Cylinder::Cylinder ( class BinaryInput b  ) 

G3D::Cylinder::Cylinder ( const Vector3 _p1,
const Vector3 _p2,
float  _r 
)


Member Function Documentation

float G3D::Cylinder::area (  )  const

Line G3D::Cylinder::axis (  )  const

The line down the center of the Cylinder.

Vector3 G3D::Cylinder::center (  )  const [inline]

Center of mass.

bool G3D::Cylinder::contains ( const Vector3 p  )  const

Returns true if the point is inside the Cylinder or on its surface.

void G3D::Cylinder::deserialize ( class BinaryInput b  ) 

void G3D::Cylinder::getBounds ( AABox out  )  const

Get close axis aligned bounding box.

With vertical world orientation, the top and bottom might not be very tight.

void G3D::Cylinder::getRandomSurfacePoint ( Vector3 P,
Vector3 N 
) const

Random world space point with outward facing normal.

void G3D::Cylinder::getReferenceFrame ( class CoordinateFrame cframe  )  const

A reference frame in which the center of mass is at the origin and the Y-axis is the cylinder's axis.

If the cylinder is transformed, this reference frame may freely rotate around its axis.

float G3D::Cylinder::height (  )  const [inline]

const Vector3& G3D::Cylinder::point ( int  i  )  const [inline]

Returns point 0 or 1.

float G3D::Cylinder::radius (  )  const

Vector3 G3D::Cylinder::randomInteriorPoint (  )  const

Point selected uniformly at random over the volume.

void G3D::Cylinder::serialize ( class BinaryOutput b  )  const

float G3D::Cylinder::volume (  )  const


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo