Public Types | |
enum | { Dim = _dim } |
Public Member Functions | |
HyperSphere (const Point ¢er, Scalar radius) | |
HyperSphere (const HyperSphere< Point, _dim, Scalar > &other) | |
HyperSphere< Point, _dim, Scalar > | quantified (Scalar eps) const |
Construct a copy of the instance with a quantified radius and pos. More... | |
bool | operator< (const HyperSphere< Point, _dim, Scalar > &other) const |
Comparison operator comparing first the radius then the position. More... | |
operator Point () const | |
Implicit conversion operator to Eigen vectors. More... | |
bool | intersect (const Point &nodeCenter, Scalar halfEdgeLength) const |
bool | intersectFast (const Point &nodeCenter, Scalar halfEdgeLength) const |
intersectFast Fast but inacurate intersection test More... | |
bool | intersectPoint (const Point &pos, Scalar epsilon) const |
const Point & | center () const |
const Scalar & | radius () const |
Scalar & | radius () |
Static Public Member Functions | |
static bool | intersectPoint (const Point &pos, Scalar epsilon, const Point ¢er, const Scalar &radius) |
|
inline |
|
inline |
|
inline |
|
inline |
, James, A Simple Method for Box-Sphere Intersection Testing, Graphics Gems, p. 335-339, code: p. 730-732, BoxSphere.c.
|
inline |
intersectFast Fast but inacurate intersection test
nodeCenter | |
halfEdgeLength |
Check if the node center is inside the Hypersphere (radius grown by halfEdgeLength.
|
inline |
|
inlinestatic |
|
inline |
Implicit conversion operator to Eigen vectors.
|
inline |
Comparison operator comparing first the radius then the position.
|
inline |
Construct a copy of the instance with a quantified radius and pos.
|
inline |
|
inline |