Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

sphere3 Struct Reference

List of all members.

Detailed Description

A three-dimensional sphere.


Public Member Functions

bit contains (vec3 point)
 Return whether the point is within the sphere.

bit contains (sphere3 sphere)
 Return whether the sphere is within the sphere.

void ensure (vec3 point)
 Resize the sphere to contain the point.

void ensure (sphere3 sphere)
 Resize the sphere to contain the other sphere.

bit isnan ()
 Return whether this has not been initialized.

void set (vec3 center, float radius)
 Assign parameters.

bit overlaps (sphere3 other)
 Return whether this and that sphere overlap one another.


Public Attributes

vec3 center
 Center of the sphere.

float radius
 Sphere radius.


Related Functions

(Note that these are not member functions.)

sphere3 asphere3 (vec3 center, float radius)
 Create a sphere with the specified parameters.


Member Function Documentation

bit sphere3.overlaps sphere3  other  ) 
 

Return whether this and that sphere overlap one another.

Parameters:
other The other sphere to test for overlap.
Returns:
Whether the spheres are within one another's bounds.


The documentation for this struct was generated from the following file:
Generated on Thu Sep 4 13:12:53 2003 for dig by doxygen 1.3.2