struct TVector4I

template<class T>

A four dimensional vector with integer coordinates.

Public

Constructors

TVector4I<T>

TVector4I<T>() = default

TVector4I<T>

constexpr TVector4I<T>(T x, T y, T z, T w)

TVector4I<T>

constexpr explicit TVector4I<T>(T value)

TVector4I

TVector4I() = default

TVector4I

constexpr TVector4I(int x, int y, int z, int w)

TVector4I

constexpr explicit TVector4I(int value)

TVector4I

TVector4I() = default

TVector4I

constexpr TVector4I(unsigned int x, unsigned int y, unsigned int z, unsigned int w)

TVector4I

constexpr explicit TVector4I(unsigned int value)

Methods

Swap

void Swap(TVector4I<T> &other)

Exchange the contents of this vector with another.

ToFloat

Vector4 ToFloat() const

SquaredLength

T SquaredLength() const

Returns the square of the length(magnitude) of the vector.

Dot

T Dot(const TVector4I<T> &other) const

Calculates the dot (scalar) product of this vector with another.

Swap

void Swap(TVector4I<i32> &other)

Exchange the contents of this vector with another.

ToFloat

Vector4 ToFloat() const

SquaredLength

int SquaredLength() const

Returns the square of the length(magnitude) of the vector.

Dot

int Dot(const TVector4I<i32> &other) const

Calculates the dot (scalar) product of this vector with another.

Swap

void Swap(TVector4I<u32> &other)

Exchange the contents of this vector with another.

ToFloat

Vector4 ToFloat() const

SquaredLength

unsigned int SquaredLength() const

Returns the square of the length(magnitude) of the vector.

Dot

unsigned int Dot(const TVector4I<u32> &other) const

Calculates the dot (scalar) product of this vector with another.

Fields

X

T X

Y

T Y

Z

T Z

W

T W

X

int X

Y

int Y

Z

int Z

W

int W

X

unsigned int X

Y

unsigned int Y

Z

unsigned int Z

W

unsigned int W

Operators

operator[]

T operator[](size_t index) const

operator[]

T &operator[](size_t index)

operator=

TVector4I<T> &operator=(T value)

operator==

bool operator==(const TVector4I<T> &rhs) const

operator!=

bool operator!=(const TVector4I<T> &rhs) const

operator+

TVector4I<T> operator+(const TVector4I<T> &rhs) const

operator-

TVector4I<T> operator-(const TVector4I<T> &rhs) const

operator*

TVector4I<T> operator*(T value) const

operator*

Vector4 operator*(float value) const

operator*

TVector4I<T> operator*(const TVector4I<T> &rhs) const

operator/

TVector4I<T> operator/(T value) const

operator/

Vector4 operator/(float value) const

operator/

TVector4I<T> operator/(const TVector4I<T> &rhs) const

operator+

const TVector4I<T> &operator+() const

operator+=

TVector4I<T> &operator+=(const TVector4I<T> &rhs)

operator-=

TVector4I<T> &operator-=(const TVector4I<T> &rhs)

operator*=

TVector4I<T> &operator*=(T val)

operator*=

TVector4I<T> &operator*=(const TVector4I<T> &rhs)

operator/=

TVector4I<T> &operator/=(T value)

operator/=

TVector4I<T> &operator/=(const TVector4I<T> &rhs)

operator[]

int operator[](size_t index) const

operator[]

int &operator[](size_t index)

operator=

TVector4I<i32> &operator=(int value)

operator==

bool operator==(const TVector4I<i32> &rhs) const

operator!=

bool operator!=(const TVector4I<i32> &rhs) const

operator+

TVector4I<i32> operator+(const TVector4I<i32> &rhs) const

operator-

TVector4I<i32> operator-(const TVector4I<i32> &rhs) const

operator*

TVector4I<i32> operator*(int value) const

operator*

Vector4 operator*(float value) const

operator*

TVector4I<i32> operator*(const TVector4I<i32> &rhs) const

operator/

TVector4I<i32> operator/(int value) const

operator/

Vector4 operator/(float value) const

operator/

TVector4I<i32> operator/(const TVector4I<i32> &rhs) const

operator+

const TVector4I<i32> &operator+() const

operator+=

TVector4I<i32> &operator+=(const TVector4I<i32> &rhs)

operator-=

TVector4I<i32> &operator-=(const TVector4I<i32> &rhs)

operator*=

TVector4I<i32> &operator*=(int val)

operator*=

TVector4I<i32> &operator*=(const TVector4I<i32> &rhs)

operator/=

TVector4I<i32> &operator/=(int value)

operator/=

TVector4I<i32> &operator/=(const TVector4I<i32> &rhs)

operator[]

unsigned int operator[](size_t index) const

operator[]

unsigned int &operator[](size_t index)

operator=

TVector4I<u32> &operator=(unsigned int value)

operator==

bool operator==(const TVector4I<u32> &rhs) const

operator!=

bool operator!=(const TVector4I<u32> &rhs) const

operator+

TVector4I<u32> operator+(const TVector4I<u32> &rhs) const

operator-

TVector4I<u32> operator-(const TVector4I<u32> &rhs) const

operator*

TVector4I<u32> operator*(unsigned int value) const

operator*

Vector4 operator*(float value) const

operator*

TVector4I<u32> operator*(const TVector4I<u32> &rhs) const

operator/

TVector4I<u32> operator/(unsigned int value) const

operator/

Vector4 operator/(float value) const

operator/

TVector4I<u32> operator/(const TVector4I<u32> &rhs) const

operator+

const TVector4I<u32> &operator+() const

operator+=

TVector4I<u32> &operator+=(const TVector4I<u32> &rhs)

operator-=

TVector4I<u32> &operator-=(const TVector4I<u32> &rhs)

operator*=

TVector4I<u32> &operator*=(unsigned int val)

operator*=

TVector4I<u32> &operator*=(const TVector4I<u32> &rhs)

operator/=

TVector4I<u32> &operator/=(unsigned int value)

operator/=

TVector4I<u32> &operator/=(const TVector4I<u32> &rhs)