rll/euclid/dim2.h file

Namespaces

namespace rll
Contract-programming related functions and classes.

Classes

template <typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>>
struct rll::dim2
template <typename T>
struct fmt::formatter<rll::dim2<T>>
Specialization of the fmt::formatter for the rll::dim2 class.
template <typename T>
struct adl_serializer<rll::dim2<T>>

Functions

template <typename T, typename U>
auto operator%(dim2<T> const& lhs, dim2<U> const& rhs) →  auto constexpr
template <typename T, typename U, typename = std::enable_if_t<std::is_arithmetic_v<T> and std::is_arithmetic_v<U>>>
auto operator*(T const& lhs, dim2<U> const& rhs) →  auto constexpr
template <typename T, typename U, typename = std::enable_if_t<std::is_arithmetic_v<T> and std::is_arithmetic_v<U>>>
auto operator+(T const& lhs, dim2<U> const& rhs) →  auto constexpr
template <typename T, typename U, typename = std::enable_if_t<std::is_arithmetic_v<T> and std::is_arithmetic_v<U>>>
auto operator-(T const& lhs, dim2<U> const& rhs) →  auto constexpr
template <typename T, typename U, typename = std::enable_if_t<std::is_arithmetic_v<T> and std::is_arithmetic_v<U>>>
auto operator/(T const& lhs, dim2<U> const& rhs) →  auto constexpr