39 template<
typename Scalar,
size_t D>
72 template<
typename Scalar,
size_t D>
89 template<
typename Scalar,
size_t D>
class UnitBall{};
93 template<
typename Scalar>
96 template<
typename Scalar>
99 template<
typename Scalar,
size_t D>
100 constexpr
typename std::enable_if<(D%2) && (D>1), Scalar>::type
102 return 2 * std::tgamma((D-1)/2+1)
107 template<
typename Scalar,
size_t D>
108 constexpr
typename std::enable_if<(!(D%2)) && (D>1), Scalar>::type
113 template<
typename Scalar,
size_t D>
120 template<
typename Scalar,
size_t D>
126 template<
typename Scalar,
size_t D>
auto area(const Obj &)
Compute a Hausdorf measure of the boundary/boundaries of an object.
auto volume(const Obj &)
Compute a Hausdorf measure of the interior of an object.
Scalar radius_
Radius of the ball.
Fundamental typedef's and macros for stator.
Physical constants in different floating point representations.
Ball(const Scalar &radius, const Vector< Scalar, D > ¢er=Vector< Scalar, D >::Zero().eval())
RAII constructor.
An empty-class representation of a unit ball.
An n-ball (an n-sphere including its interior volume).
Vector< Scalar, D > center_
Center of the ball.
const Scalar & radius() const
Get function for the ball radius.
const Vector< Scalar, D > & center() const
Get function for the ball center.
The stator library namespace.
auto pow(const LHS &l, const RHS &r) -> STATOR_AUTORETURN(std::pow(l, r))
Ball()
Default constructor.
An inverse n-ball (an n-sphere including its exterior volume).
Matrix< Scalar, D, 1 > Vector
A convenience typedef for a non-aligned Eigen Vector.