1
0
forked from josh/j3ml

Implement Vector2 static member methods

This commit is contained in:
2023-12-29 12:32:46 -05:00
parent 1ed11aa3db
commit 17718fa409
2 changed files with 15 additions and 5 deletions

View File

@@ -188,5 +188,15 @@ namespace LinearAlgebra {
return dot*dot <= epsilonSq * LengthSquared() * other.LengthSquared();
}
Vector2 Vector2::Normalize(const Vector2 &of) { return of.Normalize(); }
Vector2 Vector2::Project(const Vector2 &lhs, const Vector2 &rhs) { return lhs.Project(rhs); }
float Vector2::Dot(const Vector2 &lhs, const Vector2 &rhs) { return lhs.Dot(rhs); }
float Vector2::Magnitude(const Vector2 &of) { return of.Magnitude();}
Vector2 Vector2::Lerp(const Vector2 &lhs, const Vector2 &rhs, float alpha) { return lhs.Lerp(rhs, alpha); }
}