float LengthSqr() const;
Returns the length squared of the vector.
float Length() const;
Returns the length of the vector.
void Normalize();
Normalizes the vector.
static Vector4D Normalize(const Vector4D& vec)
Normalizes the vector.
static float Dot(const Vector4D& a, const Vector4D& b)
Dot product between two vectors (a dot b)
static Vector4D Cross(const Vector4D& a, const Vector4D& b)
Cross product between two vectors (a cross b)
static Vector4D Lerp(const Vector4D& a, const Vector4D& b, float f)
Lerp from A to B by f
static Vector4D Reflect(const Vector4D& v, const Vector4D& n)
Reflect V about (normalized) N