muu/bounding_sphere.h file

Contains the definition of muu::bounding_sphere.

Namespaces

namespace muu
The root namespace for all muu functions and types.

Classes

template <typename Scalar>
struct muu::bounding_sphere
A bounding sphere.
template <typename Scalar>
struct std::tuple_size<muu::bounding_sphere<Scalar>>
Specialization of std::tuple_size for muu::bounding_sphere.
template <size_t I, typename Scalar>
struct std::tuple_element<I, muu::bounding_sphere<Scalar>>
Specialization of std::tuple_element for muu::bounding_sphere.
template <typename Scalar>
struct muu::constants<bounding_sphere<Scalar>>
Bounding spehere constants.

Functions

template <typename S, typename T>
auto approx_equal(const bounding_sphere<S>& bs1, const bounding_sphere<T>& bs2, epsilon_type<S, T> epsilon = default_epsilon<S, T>) -> bool constexpr noexcept
Returns true if two bounding spheres are approximately equal.
template <typename S>
auto approx_zero(const bounding_sphere<S>& bs, S epsilon = default_epsilon<S>) -> bool constexpr noexcept
Returns true if all the scalar components of a bounding sphere are approximately equal to zero.
template <typename S>
auto degenerate(const bounding_sphere<S>& bs) -> bool constexpr noexcept
Returns true if a bounding sphere is degenerate (i.e. its radius is less than or equal to zero).
template <typename S>
auto infinity_or_nan(const bounding_sphere<S>& bs) -> bool constexpr noexcept
Returns true if any of the scalar components of a bounding sphere are infinity or NaN.