struct
#include <Spore ModAPI/Spore/MathUtils.h>
Vector4 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
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