module
degenerate()Retuurns true if a math class type is in a degenerate state.
Functions
-
template <typename S>auto degenerate(const bounding_box<S>& bb) -> bool constexpr noexcept
- Returns true if a bounding box is degenerate (i.e. any of its extents are less than or 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 degenerate(const line_segment<S>& seg) -> bool constexpr noexcept
- Returns true if a line segment is degenerate (i.e. its points are coincident).
-
template <typename T, size_t N>auto degenerate(const T(&vals)[N]) -> bool constexpr noexcept
- Returns true if any value in array is in a degenerate state.
-
template <typename T, typename U, typename... V>auto degenerate(const T& val1, const U& val2, const V&... vals) -> bool constexpr noexcept
- Returns true if any of the given values in a degenerate state.
-
template <typename S>auto degenerate(const oriented_bounding_box<S>& bb) -> bool constexpr noexcept
- Returns true if an oriented bounding box is degenerate (i.e. any of its extents are less than or equal to zero).
-
template <typename S>auto degenerate(const triangle<S>& tri) -> bool constexpr noexcept
- Returns true if a triangle is degenerate (i.e. two or more of its points are coincident).
Function documentation
#include <muu/bounding_box.h>
template <typename S>
bool degenerate(const bounding_box<S>& bb) constexpr noexcept
Returns true if a bounding box is degenerate (i.e. any of its extents are less than or equal to zero).
#include <muu/bounding_sphere.h>
template <typename S>
bool degenerate(const bounding_sphere<S>& bs) constexpr noexcept
Returns true if a bounding sphere is degenerate (i.e. its radius is less than or equal to zero).
#include <muu/line_segment.h>
template <typename S>
bool degenerate(const line_segment<S>& seg) constexpr noexcept
Returns true if a line segment is degenerate (i.e. its points are coincident).
#include <muu/math.h>
template <typename T, size_t N>
bool degenerate(const T(&vals)[N]) constexpr noexcept
Returns true if any value in array is in a degenerate state.
#include <muu/math.h>
template <typename T, typename U, typename... V>
bool degenerate(const T& val1,
const U& val2,
const V&... vals) constexpr noexcept
Returns true if any of the given values in a degenerate state.
#include <muu/oriented_bounding_box.h>
template <typename S>
bool degenerate(const oriented_bounding_box<S>& bb) constexpr noexcept
Returns true if an oriented bounding box is degenerate (i.e. any of its extents are less than or equal to zero).
#include <muu/triangle.h>
template <typename S>
bool degenerate(const triangle<S>& tri) constexpr noexcept
Returns true if a triangle is degenerate (i.e. two or more of its points are coincident).