#include <Sphere.h>
Public Member Functions | |
| Sphere (void) | |
| virtual | ~Sphere (void) |
| Sphere (const Sphere &rhs) | |
| Sphere & | operator= (const Sphere &rhs) |
| Sphere (const ml7::Vector2 ¢er, const float radius) | |
| Sphere (const ml7::Vector2 &a, const ml7::Vector2 &b, const ml7::Vector2 &c) | |
| Sphere & | from_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 |
Base class for spheres of any type and purpose: collision geometry, bounding volumes, other primitives.
| 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.
| 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.
| bool bl7::geometry2::Sphere::operator== | ( | const Sphere & | rhs | ) | const [inline] |
Checks whether a given sphere and this have the same center and radius.
The center point.
The radius.
1.7.1