In file graphics3D/Sphere.h:

namespace yav class Sphere

a geometric sphere

Inheritance:


Public Methods

double getRadius (void) const
returns sphere radius
virtual void setRadius (double r)
set new sphere radius
Vec3 getCenter (void) const
returns sphere center
virtual void setCenter (const Vec3& c)
set new sphere radius
virtual void translate (const Vec3& t)
translate sphere
virtual void rotate (const Rotation3D& r, const Vec3& P)
rotates sphere around P

Public

constructors
Sphere ()
default sphere centered at 0 with 1.0 radius
Sphere (const Vec3& c, double r)
builds a new sphere
destructor
virtual ~Sphere ()
empty

Protected Fields

Vec3 center
sphere center
double radius
sphere radius

Documentation

a geometric sphere
Vec3 center
sphere center

double radius
sphere radius

constructors

Sphere()
default sphere centered at 0 with 1.0 radius

Sphere(const Vec3& c, double r)
builds a new sphere
Parameters:
c - new sphere center
r - new sphere radius

destructor

virtual ~Sphere()
empty

double getRadius(void) const
returns sphere radius

virtual void setRadius(double r)
set new sphere radius
Parameters:
r - new radius (should be > 0)

Vec3 getCenter(void) const
returns sphere center

virtual void setCenter(const Vec3& c)
set new sphere radius
Parameters:
r - new radius (should be > 0)

virtual void translate(const Vec3& t)
translate sphere
Parameters:
t - translation vector

virtual void rotate(const Rotation3D& r, const Vec3& P)
rotates sphere around P
Parameters:
r - rotation matrix
P - rotation center point


Direct child classes:
MaterialSphere

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de