Math::Vector4 struct

A vector of 4 float values (x, y, z, w).

Derived classes

struct Graphics::cPlane
struct Quaternion
A vector of 4 float values (x, y, z, w) representing a quaternion rotation, similar to a Vector4.

Constructors, destructors, conversion operators

Vector4(float x, float y, float z, float w)
Vector4()

Public functions

auto Length() const -> float
Returns the length of the vector, computed as the square root of then sum of its components squared.
auto Normalized() const -> Vector4
Returns a normalized version of this vector. Being normalized means it has a length of 1.0.
auto Dot(const Vector4& other) const -> float
Computes the dot product between this vector and other.
auto operator+=(const Vector4&) -> Vector4&
VECTOR 4.
auto operator+=(float) -> Vector4&
auto operator-=(const Vector4&) -> Vector4&
auto operator-=(float) -> Vector4&
auto operator*=(float) -> Vector4&
auto operator/=(float) -> Vector4&
auto operator==(const Vector4& b) const -> bool
auto operator!=(const Vector4& b) const -> bool

Public variables

float x
float y
float z
float w

Function documentation

float Math::Vector4::Dot(const Vector4& other) const

Computes the dot product between this vector and other.

Parameters
other

The dot product is computed as a.x * b.x + a.y * b.y + a.z * b.z