Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
[2/3]
static void ReLogic.Utilities.Vector2D.Normalize
(
ref
Vector2D
value
,
out
Vector2D
result
)
inline
static
Definition at line
296
of file
Vector2D.cs
.
297
{
298
double
num = 1.0 /
Math
.
Sqrt
(
value
.X *
value
.X +
value
.Y *
value
.Y);
299
result.X = value.X * num;
300
result.Y = value.Y * num;
301
}
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