Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
static
Quaternion
System.Numerics.Quaternion.Normalize
(
Quaternion
value
)
inline
static
Definition at line
319
of file
Quaternion.cs
.
320
{
321
float
x = value.X * value.X + value.Y * value.Y + value.Z * value.Z + value.W *
value
.W;
322
float
num = 1f / MathF.Sqrt(x);
323
System
.
Runtime
.
CompilerServices
.
Unsafe
.SkipInit(out
Quaternion
result);
324
result.X = value.X * num;
325
result.Y = value.Y * num;
326
result.Z = value.Z * num;
327
result.W = value.W * num;
328
return
result;
329
}
System.Runtime.CompilerServices.Unsafe
Definition
Unsafe.cs:6
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Runtime
Definition
NullablePublicOnlyAttribute.cs:3
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
System.Numerics.Quaternion.Quaternion
Quaternion(float x, float y, float z, float w)
Definition
Quaternion.cs:21
References
System.MathF.Sqrt()
, and
System.value
.
System
Numerics
Quaternion
Generated by
1.10.0