Represents a 3D vector with x, y, and z components. This class provides basic vector operations such ...
Definition vector3.h:8
Vector3 operator-(const Vector3 &other) const noexcept
Vector3 & operator*=(float value) noexcept
Vector3 operator+(const Vector3 &other) const noexcept
Vector3 operator/(float value) const noexcept
Vector3 & operator/=(float value) noexcept
Vector3 & operator*=(const Vector3 &other) noexcept
Vector3 & operator-=(const Vector3 &other) noexcept
float x
Definition vector3.h:10
float y
Definition vector3.h:11
void normalize() noexcept
Normalizes the vector to have a length of 1.
Vector3 operator/(const Vector3 &other) const noexcept
float z
Definition vector3.h:12
Vector3 operator*(float value) const noexcept
float length() const noexcept
Calculates the length (magnitude) of the vector.
Vector3 operator*(const Vector3 &other) const noexcept
Vector3(float x, float y, float z)
Vector3 & operator/=(const Vector3 &other) noexcept
Vector3 & operator+=(const Vector3 &other) noexcept
bool equals(const Vector3 &other) const noexcept
Checks if this vector is equal to another vector.