Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
[3/3]
static
Vector2D
ReLogic.Utilities.Vector2D.Normalize
(
Vector2D
value
)
inline
static
Definition at line
288
of file
Vector2D.cs
.
289
{
290
double
num = 1.0 /
Math
.
Sqrt
(
value
.X *
value
.X +
value
.Y *
value
.Y);
291
value.X *= num;
292
value.Y *= num;
293
return
value
;
294
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
System.ExceptionArgument.value
@ value
References
System.Math.Sqrt()
, and
System.value
.
ReLogic
Utilities
Vector2D
Generated by
1.10.0