Template Struct Displacement

Struct Documentation

template<typename T>
struct Displacement

Public Types

using ValueType = T

Public Functions

inline constexpr Displacement()
constexpr Displacement(Displacement const&) = default
Displacement &operator=(Displacement const&) = default
template<typename U>
inline explicit constexpr Displacement(Displacement<U> const &other) noexcept
template<typename DeltaXType, typename DeltaYType>
inline constexpr Displacement(DeltaXType &&dx, DeltaYType &&dy)
template<typename Q = T>
inline constexpr std::enable_if<std::is_integral<Q>::value, long long>::type length_squared() const
template<typename Q = T>
inline constexpr std::enable_if<!std::is_integral<Q>::value, T>::type length_squared() const

Public Members

DeltaX<T> dx
DeltaY<T> dy

Friends

friend bool operator==(Displacement const &lhs, Displacement const &rhs) = default
friend bool operator!=(Displacement const &lhs, Displacement const &rhs) = default