Main Page | Class Hierarchy | Class List | Class Members

DVR::Math::Sphere Class Reference

List of all members.

Public Member Functions

 Sphere ()
 Sphere (Vector3 center, float radius)
bool Intersects (Sphere sphere)

Properties

Vector3 Center
float Radius

Detailed Description

A standard sphere, used mostly for bounds checking. A sphere in math texts is normally represented by the function x^2 + y^2 + z^2 = r^2 (for sphere's centered on the origin). We store spheres simply as a center point and a radius.


Constructor & Destructor Documentation

DVR::Math::Sphere::Sphere  )  [inline]
 

Creates a unit sphere centered at the origin.

DVR::Math::Sphere::Sphere Vector3  center,
float  radius
[inline]
 

Creates an arbitrary spehere. Center point of the sphere. Radius of the sphere.


Member Function Documentation

bool DVR::Math::Sphere::Intersects Sphere  sphere  )  [inline]
 

Tests for intersection between this sphere and another sphere. Other sphere. True if the spheres interest, false otherwise.


Property Documentation

Vector3 DVR::Math::Sphere::Center [get, set]
 

Gets/Sets the center of the sphere.

float DVR::Math::Sphere::Radius [get, set]
 

Gets/Sets the radius of the sphere.


The documentation for this class was generated from the following file:
Generated on Tue Nov 30 22:19:44 2004 for DirectVolumeRenderer by doxygen 1.3.6