Implement Vector2 static member methods
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user