(e5eeacbd0) Cleanup.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:43:56 +03:00
parent 71d1738498
commit ada4e17dfe
4 changed files with 12 additions and 165 deletions
@@ -69,6 +69,7 @@ namespace Barotrauma.Extensions
/// </summary>
public static Vector2 TransformVector(this Vector2 v, Vector2 up)
{
up = Vector2.Normalize(up);
return (up * v.Y) + (up.Right() * v.X);
}