P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
Vector4< T > Struct Template Reference

#include <Vector4.hpp>

Public Member Functions

template<typename = typename std::enable_if<std::is_convertible<decltype(std::declval<T>() == std::declval<T>()), bool>::value, ::type>
bool operator== (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_convertible<decltype(std::declval<T>() == std::declval<T>()), bool>::value, ::type>
bool operator!= (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 operator+ (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 operator- (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 operator* (T scalar) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 operator/ (T scalar) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & operator+= (const Vector4 &other)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & operator-= (const Vector4 &other)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & operator*= (T scalar)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & operator/= (T scalar)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 operator- () const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
T dot (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
T square_magnitude () const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
std::conditional< std::is_floating_point< T >::value, T, double >::type magnitude () const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
std::conditional< std::is_floating_point< T >::value, T, double >::type distance (const Vector4 &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
Vector4 normalized () const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
void normalize ()
template<typename U = T, typename = typename std::enable_if<std::is_floating_point<U>::value>::type>
bool same (const Vector4 &other, T epsilon=epsilon_v< T >) const

Public Attributes

T w {}
T x {}
T y {}
T z {}

Member Function Documentation

◆ distance()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
std::conditional< std::is_floating_point< T >::value, T, double >::type Vector4< T >::distance ( const Vector4< T > & other) const
inline

◆ dot()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
T Vector4< T >::dot ( const Vector4< T > & other) const
inline

◆ magnitude()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
std::conditional< std::is_floating_point< T >::value, T, double >::type Vector4< T >::magnitude ( ) const
inline

◆ normalize()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
void Vector4< T >::normalize ( )
inline

◆ normalized()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
Vector4 Vector4< T >::normalized ( ) const
inline

◆ operator!=()

template<typename T>
template<typename = typename std::enable_if<std::is_convertible<decltype(std::declval<T>() == std::declval<T>()), bool>::value, ::type>
bool Vector4< T >::operator!= ( const Vector4< T > & other) const
inline

◆ operator*()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 Vector4< T >::operator* ( T scalar) const
inline

◆ operator*=()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & Vector4< T >::operator*= ( T scalar)
inline

◆ operator+()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 Vector4< T >::operator+ ( const Vector4< T > & other) const
inline

◆ operator+=()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & Vector4< T >::operator+= ( const Vector4< T > & other)
inline

◆ operator-() [1/2]

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 Vector4< T >::operator- ( ) const
inline

◆ operator-() [2/2]

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 Vector4< T >::operator- ( const Vector4< T > & other) const
inline

◆ operator-=()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & Vector4< T >::operator-= ( const Vector4< T > & other)
inline

◆ operator/()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 Vector4< T >::operator/ ( T scalar) const
inline

◆ operator/=()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
Vector4 & Vector4< T >::operator/= ( T scalar)
inline

◆ operator==()

template<typename T>
template<typename = typename std::enable_if<std::is_convertible<decltype(std::declval<T>() == std::declval<T>()), bool>::value, ::type>
bool Vector4< T >::operator== ( const Vector4< T > & other) const
inline

◆ same()

template<typename T>
template<typename U = T, typename = typename std::enable_if<std::is_floating_point<U>::value>::type>
bool Vector4< T >::same ( const Vector4< T > & other,
T epsilon = epsilon_v<T> ) const
inline

◆ square_magnitude()

template<typename T>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
T Vector4< T >::square_magnitude ( ) const
inline

Member Data Documentation

◆ w

template<typename T>
T Vector4< T >::w {}

◆ x

template<typename T>
T Vector4< T >::x {}

◆ y

template<typename T>
T Vector4< T >::y {}

◆ z

template<typename T>
T Vector4< T >::z {}

The documentation for this struct was generated from the following file: