Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

Sphere Class Reference

Represents a sphere in 3D space. More...

List of all members.

Public Member Functions

EMMA_EXPORT Sphere (const Fusion::Vec3f &c, float r)
 Construct a sphere given center and radius.
EMMA_EXPORT void setValue (const Fusion::Vec3f &c, float r)
 Change the center and radius.
EMMA_EXPORT void setCenter (const Fusion::Vec3f &c)
 Set just the center or radius.
EMMA_EXPORT const Fusion::Vec3f & getCenter () const
 Return the center and radius.
EMMA_EXPORT void circumscribe (const Box3f &box)
 Return a sphere containing a given box.
EMMA_EXPORT bool intersect (const Line &l, Fusion::Vec3f &intersection) const
 Intersect line and sphere, returning TRUE if there is an intersection.


Detailed Description

Represents a sphere in 3D space.


Generated on Sat Apr 1 06:08:08 2006 for Emma Content Development Kit by  doxygen 1.4.3