a ball = points surrounded by a sphere in arbitrary space with vector type V More...
#include <MRBall.h>
Public Types | |
using | VTraits = VectorTraits<V> |
using | T = typename VTraits::BaseType |
Public Member Functions | |
bool | inside (const V &pt) const |
returns true if given point is strictly inside the ball (not on its spherical surface) | |
bool | outside (const V &pt) const |
returns true if given point is strictly outside the ball (not on its spherical surface) | |
Public Attributes | |
V | center |
ball's center | |
T | radiusSq = 0 |
ball's squared radius | |
Static Public Attributes | |
static constexpr int | elements = VTraits::size |
a ball = points surrounded by a sphere in arbitrary space with vector type V
using MR::Ball< V >::T = typename VTraits::BaseType |
using MR::Ball< V >::VTraits = VectorTraits<V> |
|
inline |
returns true if given point is strictly inside the ball (not on its spherical surface)
|
inline |
returns true if given point is strictly outside the ball (not on its spherical surface)
V MR::Ball< V >::center |
ball's center
|
staticconstexpr |