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

◆ Round()

static Vector2 Terraria.Utils.Round ( Vector2 input)
inlinestatic

Definition at line 75 of file Utils.cs.

76 {
77 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
78 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
79 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
80 return new Vector2((float)Math.Round(input.X), (float)Math.Round(input.Y));
81 }

Referenced by Terraria.Main.ClampScreenPositionToWorld().

+ Here is the caller graph for this function: