#include <Sphere3f.h>
Inheritance diagram for nvmath::Sphere3f:
Public Methods | |
NVSG_API | Sphere3f (void) |
Default constructor. More... | |
NVSG_API | Sphere3f (const Vec3f ¢er, float radius) |
Constructor by center and radius. More... | |
NVSG_API Sphere3f & | operator= (const Sphere3f &sphere) |
Assignment operator. More... | |
NVSG_API bool | operator== (const Sphere3f &sphere) const |
Equality operator. More... | |
NVSG_API bool | operator!= (const Sphere3f &sphere) const |
Inequality operator. More... | |
NVSG_API float | operator() (const Vec3f &p) const |
Calling operator. More... | |
NVSG_API const Vec3f & | getCenter (void) const |
Get the center of the sphere. More... | |
NVSG_API void | setCenter (const Vec3f ¢er) |
Set the center of the sphere. More... | |
NVSG_API float | getRadius (void) const |
Get the radius of the sphere. More... | |
NVSG_API void | setRadius (float radius) |
Set the radius of the sphere. More... | |
Related Functions | |
(Note that these are not member functions.) | |
Sphere3f | boundingSphere (const Vec3f *points, size_t numberOfPoints) |
Sphere3f | boundingSphere (const Sphere3f &s, const Vec3f &p) |
Sphere3f | boundingSphere (const Sphere3f &s0, const Sphere3f &s1) |
|
Default constructor. For performance reasons no initialization is performed. |
|
Constructor by center and radius.
|
|
Assignment operator.
|
|
Equality operator.
|
|
Inequality operator.
|
|
Calling operator. Calculates the distance of a point to the sphere. When the point is inside the sphere, the distance is negative; when the point is outside, the distance is positive.
|
|
Get the center of the sphere.
Reimplemented in nvmath::BoundingSphere. |
|
Set the center of the sphere.
|
|
Get the radius of the sphere.
Reimplemented in nvmath::BoundingSphere. |
|
Set the radius of the sphere.
|
|
Determine the bounding sphere a number of points
|
|
Determine the bounding sphere around a sphere s and a point p.
|
|
Determine the bounding sphere around two given spheres.
|