struct
TVector3I
template<class T>A three dimensional vector with integer coordinates.
Public
Constructors
TVector3I<T>
TVector3I<T>() = default
TVector3I<T>
constexpr TVector3I<T>(T x, T y, T z)
TVector3I<T>
TVector3I
TVector3I() = default
TVector3I
constexpr TVector3I(int x, int y, int z)
TVector3I
constexpr explicit TVector3I(int value)
TVector3I
TVector3I() = default
TVector3I
constexpr TVector3I(unsigned int x, unsigned int y, unsigned int z)
TVector3I
constexpr explicit TVector3I(unsigned int value)
Methods
ToFloat
Vector3 ToFloat() const
CalculateManhattanDistance
Returns the manhattan distance between this and another point.
SquaredLength
T SquaredLength() const
Returns the square of the length(magnitude) of the vector.
Dot
Calculates the dot (scalar) product of this vector with another.
ToFloat
Vector3 ToFloat() const
CalculateManhattanDistance
Returns the manhattan distance between this and another point.
SquaredLength
int SquaredLength() const
Returns the square of the length(magnitude) of the vector.
Dot
Calculates the dot (scalar) product of this vector with another.
ToFloat
Vector3 ToFloat() const
CalculateManhattanDistance
Returns the manhattan distance between this and another point.
SquaredLength
unsigned int SquaredLength() const
Returns the square of the length(magnitude) of the vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Fields
X
T X
Y
T Y
Z
T Z
X
int X
Y
int Y
Z
int Z
X
unsigned int X
Y
unsigned int Y
Z
unsigned int Z
Operators
operator[]
T operator[](size_t index) const
operator[]
T &operator[](size_t index)
operator=
TVector3I<T> &operator=(T value)
operator==
operator!=
operator*
TVector3I<T> operator*(T value) const
operator*
Vector3 operator*(float value) const
operator/
TVector3I<T> operator/(T value) const
operator/
Vector3 operator/(float value) const
operator+
operator*=
TVector3I<T> &operator*=(T val)
operator/=
TVector3I<T> &operator/=(T value)
operator[]
int operator[](size_t index) const
operator[]
int &operator[](size_t index)
operator=
TVector3I<i32> &operator=(int value)
operator==
operator!=
operator*
operator*
Vector3 operator*(float value) const
operator/
operator/
Vector3 operator/(float value) const
operator+
operator*=
TVector3I<i32> &operator*=(int val)
operator/=
TVector3I<i32> &operator/=(int value)
operator[]
unsigned int operator[](size_t index) const
operator[]
unsigned int &operator[](size_t index)
operator=
operator==
operator!=
operator*
operator*
Vector3 operator*(float value) const
operator/
operator/
Vector3 operator/(float value) const