struct
TVector2
template<class T>A two dimensional vector.
Public
Constructors
TVector2<T>
TVector2<T>
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
TVector2
Methods
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
Swap
Exchange the contents of this vector with another.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
Swap
Exchange the contents of this vector with another.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
Swap
Exchange the contents of this vector with another.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.
Swap
Exchange the contents of this vector with another.
SquaredLength
Returns the square of the length(magnitude) of the vector.
SquaredDistance
Returns the square of the distance to another vector.
Dot
Calculates the dot (scalar) product of this vector with another.
Floor
Sets this vector's components to the minimum of its own and the ones of the passed in vector.
Ceil
Sets this vector's components to the maximum of its own and the ones of the passed in vector.
staticMin
Returns the minimum of all the vector components as a new vector.
staticMax
Returns the maximum of all the vector components as a new vector.