# WFMath_Ball man page

WFMath::Ball< dim > — A dim dimensional ball.

## Synopsis

`#include <ball.h>`

### Public Member Functions

Ball()construct an uninitialized ballBall(constPoint< dim > ¢er,CoordType radius)construct a ball with the given center and radiusBall(constBall&b)construct a copy of a ballBall(const AtlasInType &a)Construct a ball from an object passed by Atlas.

AtlasOutTypetoAtlas() constCreate an Atlas object from the box.

voidfromAtlas(const AtlasInType &a)Set the box's value to that given by an Atlas object.

constPoint< dim > ¢er() constget the center of the ballPoint< dim > ¢er()get the center of the ballCoordType radius() constget the radius of the ballCoordType&radius()get the radius of the ball

## Detailed Description

### template<int dim = 3>

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.

## Author

Generated automatically by Doxygen for WFMath from the source code.

## Info

Fri Feb 5 2016 Version 1.0.2 WFMath