User manual:   Main Page   Overview   Installation   User Interface   Tutorial   Example   FAQ   Version Updates
Reference manual:   Class List   Class Members   Globals, enums and defines

Sphere Class Reference

Defines a sphere. More...

List of all members.

Public Methods

 Sphere ()
 Sphere (Coord center, double radius)
void setCenter (Coord center)
void setRadius (double radius)
void setParams (Coord center, double radius)
void getCenter (Coord &center) const
void getRadius (double &radius) const
void getParams (Coord &center, double &radius) const


Detailed Description

Defines a sphere.

The sphere is defined by its center coordinate and a radius.


Constructor & Destructor Documentation

Sphere::Sphere   [inline]
 

Default constructor.

Creates a sphere centered at (0,0,0) with radius of DEFAULT_SPHERE_RADIUS.

Sphere::Sphere Coord    center,
double    radius
[inline]
 

Constructor.

Parameters:
center The center of the sphere
radius The radius of the sphere


Member Function Documentation

void Sphere::getCenter Coord   center const [inline]
 

Get center of sphere.

Parameters:
center [output] The center of the sphere

void Sphere::getParams Coord   center,
double &    radius
const [inline]
 

Get parameters.

Parameters:
center [output] The center of the sphere
radius [output] The radius of the sphere

void Sphere::getRadius double &    radius const [inline]
 

Get radius of the sphere.

Parameters:
radius [output] The radius of the sphere

void Sphere::setCenter Coord    center [inline]
 

Set the center.

Parameters:
center The center of the sphere

void Sphere::setParams Coord    center,
double    radius
[inline]
 

Set parameters.

Parameters:
center The center of the sphere
radius The radius of the sphere

void Sphere::setRadius double    radius [inline]
 

Set the radius.

Parameters:
radius The radius of the sphere


The documentation for this class was generated from the following file:
MeshMaker 5.2 Manual
This software library was written by Roni Raab, ronir@cs.technion.ac.il.
Last updated on May 2003.
This software is for academic and research use only.