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

◆ ToRotationVector2()

static Vector2 Terraria.Utils.ToRotationVector2 ( this float f)
inlinestatic

Definition at line 1126 of file Utils.cs.

1127 {
1128 return new Vector2((float)Math.Cos(f), (float)Math.Sin(f));
1129 }
static double Cos(double d)
static double Sin(double a)

References System.Math.Cos(), System.Math.Sin(), and Microsoft.Xna.Framework.Graphics.Vector2.

Referenced by Terraria.Utils.PoofOfSmoke().