struct
TVector4
template<class T>A four dimensional vector.
Public
Constructors
TVector4<T>
TVector4<T>() = default
TVector4<T>
constexpr TVector4<T>(T x, T y, T z, T w)
TVector4
TVector4() noexcept = default
TVector4
constexpr TVector4(ZeroTag)
TVector4
constexpr TVector4(float x, float y, float z, float w)
TVector4
TVector4
TVector4() = default
TVector4
constexpr TVector4(ZeroTag)
TVector4
constexpr TVector4(double x, double y, double z, double w)
TVector4
Methods
Dot
Calculates the dot (scalar) product of this vector with another.
IsNaN
inline bool IsNaN() const
Checks are any of the vector components NaN.
Dot
Calculates the dot (scalar) product of this vector with another.
IsNaN
inline bool IsNaN() const
Checks are any of the vector components NaN.
Dot
Calculates the dot (scalar) product of this vector with another.
IsNaN
inline bool IsNaN() const
Checks are any of the vector components NaN.
Fields
X
T X
Y
T Y
Z
T Z
W
T W
X
float X
Y
float Y
Z
float Z
W
float W
X
double X
Y
double Y
Z
double Z
W
double W
Operators
operator[]
T operator[](u32 i) const
operator[]
T &operator[](u32 i)
operator=
TVector4<T> &operator=(T rhs)
operator==
operator!=
operator*
TVector4<T> operator*(T rhs) const
operator/
TVector4<T> operator/(T rhs) const
operator+
operator-
TVector4<T> operator-() const
operator*=
TVector4<T> &operator*=(T rhs)
operator+=
TVector4<T> &operator+=(T rhs)
operator-=
TVector4<T> &operator-=(T rhs)
operator/=
TVector4<T> &operator/=(T rhs)
operator[]
float operator[](u32 i) const
operator[]
float &operator[](u32 i)
operator=
operator==
operator!=
operator*
operator/
operator+
operator-
operator*=
operator+=
operator-=
operator/=
operator[]
double operator[](u32 i) const
operator[]
double &operator[](u32 i)