Public Member Functions | Public Attributes

bl7::geometry2::Sphere Class Reference

#include <Sphere.h>

Inheritance diagram for bl7::geometry2::Sphere:
bl7::geometry2::Geometry bl7::geometry2::BoundingSphere bl7::geometry2::CollisionSphere

List of all members.

Public Member Functions

 Sphere (void)
virtual ~Sphere (void)
 Sphere (const Sphere &rhs)
Sphereoperator= (const Sphere &rhs)
 Sphere (const ml7::Vector2 &center, const float radius)
 Sphere (const ml7::Vector2 &a, const ml7::Vector2 &b, const ml7::Vector2 &c)
Spherefrom_points (const ml7::Vector2 &a, const ml7::Vector2 &b, const ml7::Vector2 &c)
bool operator== (const Sphere &rhs) const
bool operator!= (const Sphere &rhs) const

Public Attributes

ml7::Vector2 center
float radius

Detailed Description

Base class for spheres of any type and purpose: collision geometry, bounding volumes, other primitives.


Constructor & Destructor Documentation

bl7::geometry2::Sphere::Sphere ( void   )  [inline]

Default constructor.

virtual bl7::geometry2::Sphere::~Sphere ( void   )  [inline, virtual]

Destructor.

bl7::geometry2::Sphere::Sphere ( const Sphere rhs  )  [inline]

Copy constructor.

bl7::geometry2::Sphere::Sphere ( const ml7::Vector2 center,
const float  radius 
) [inline]

Explicit constructor: sphere from center point and radius.

bl7::geometry2::Sphere::Sphere ( const ml7::Vector2 a,
const ml7::Vector2 b,
const ml7::Vector2 c 
) [inline]

Explicit constructor: sphere from three points.


Member Function Documentation

Sphere & bl7::geometry2::Sphere::from_points ( const ml7::Vector2 a,
const ml7::Vector2 b,
const ml7::Vector2 c 
)

Creates the sphere from three points.

Creates a sphere from three points.

bool bl7::geometry2::Sphere::operator!= ( const Sphere rhs  )  const [inline]

Checks whether a given sphere and this have not the same center or radius.

Sphere& bl7::geometry2::Sphere::operator= ( const Sphere rhs  )  [inline]

Copy assignment operator.

bool bl7::geometry2::Sphere::operator== ( const Sphere rhs  )  const [inline]

Checks whether a given sphere and this have the same center and radius.


Member Data Documentation

The radius.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines