Main Page | Class Hierarchy | Class List | Class Members

SC::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

SC::Math::Sphere::Sphere  )  [inline]
 

Creates a unit sphere centered at the origin.

SC::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 SC::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 SC::Math::Sphere::Center [get, set]
 

Gets/Sets the center of the sphere.

float SC::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 Sat Jan 15 23:59:00 2005 for StreamCtrl by doxygen 1.3.6