public static float GetAngle(this Vector2f v) { return(MathExtensions.Atan2(v.Y, v.X)); }
//returns the length of the vector public static float Magnitude(this Vector2f v, Vector2f v2) { return(MathExtensions.Sqrt(Math.Pow(v.X - v2.X, 2) + Math.Pow(v.Y - v2.Y, 2))); }
//returns the length of the vector public static float Magnitude(this Vector2f v) { return(MathExtensions.Sqrt(v.X * v.X + v.Y * v.Y)); }