Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToRotation()

static float Terraria.Utils.ToRotation ( this Vector2 v)
inlinestatic

Definition at line 1121 of file Utils.cs.

1122 {
1123 return (float)Math.Atan2(v.Y, v.X);
1124 }
static double Atan2(double y, double x)

References System.Math.Atan2(), Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.