Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members

WFMath::Ball< dim > Class Template Reference

A dim dimensional ball. More...

#include <ball.h>

List of all members.

Public Member Functions

 Ball ()
 construct an uninitialized ball
 Ball (const Point< dim > &center, CoordType radius)
 construct a ball with the given center and radius
 Ball (const Ball &b)
 construct a copy of a ball
const Point< dim > & center () const
 get the center of the ball
Point< dim > & center ()
 get the center of the ball
CoordType radius () const
 get the radius of the ball
CoordTyperadius ()
 get the radius of the ball


Detailed Description

template<const int dim>
class WFMath::Ball< dim >

A dim dimensional ball.

This class implements the full shape interface, as described in the fake class Shape.

This class is called Ball<> instead of Sphere to be more in tune with the usual mathematical naming conventions, where a ball is a filled object, while a sphere is just the outer shell. It also helps that a Ball<n> corresponds to an n-ball, while a Sphere<n> would correspond to an (n-1)-sphere.


The documentation for this class was generated from the following files:
Generated on Thu May 19 13:45:18 2005 for WFMath by  doxygen 1.4.2