muu/ray.h file

Contains the definition of muu::ray.

Namespaces

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

Classes

template <typename Scalar>
struct muu::ray
A ray.
template <typename Scalar>
struct std::tuple_size<muu::ray<Scalar>>
Specialization of std::tuple_size for muu::ray.
template <size_t P, typename Scalar>
struct std::tuple_element<P, muu::ray<Scalar>>
Specialization of std::tuple_element for muu::ray.

Functions

template <typename S, typename T>
auto approx_equal(const ray<S>& ray1, const ray<T>& ray2, epsilon_type<S, T> epsilon = default_epsilon<S, T>) -> bool constexpr noexcept
Returns true if two rays are approximately equal.
template <typename S>
auto infinity_or_nan(const ray<S>& r) -> bool constexpr noexcept
Returns true if any of the scalars in a ray are infinity or NaN.