triangle.h file
Contains the definition of muu::
Namespaces
- namespace muu
- The root namespace for all muu functions and types.
Classes
-
template <typename Scalar>struct muu::triangle
- A triangle.
-
template <typename Scalar>struct std::tuple_size<muu::triangle<Scalar>>
- Specialization of std::tuple_size for muu::
triangle. -
template <size_struct std::tuple_element<P, muu::triangle<Scalar>>
t P, typename Scalar> - Specialization of std::tuple_element for muu::
triangle. -
template <typename Scalar>struct muu::constants<triangle<Scalar>>
- Triangle constants.
Functions
-
template <typename S, typename T>auto approx_equal(const triangle<S>& tri1, const triangle<T>& tri2, epsilon_type<S, T> epsilon = default_epsilon<S, T>) -> bool constexpr noexcept
- Returns true if two triangles are approximately equal.
-
template <typename S>auto approx_zero(const triangle<S>& tri, S epsilon = default_epsilon<S>) -> bool constexpr noexcept
- Returns true if all the points in triangle are approximately 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).
-
template <typename S>auto infinity_or_nan(const triangle<S>& tri) -> bool constexpr noexcept
- Returns true if any of the points in a triangle are infinity or NaN.