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

◆ DotCoordinate()

static float System.Numerics.Plane.DotCoordinate ( Plane plane,
Vector3 value )
inlinestatic

Definition at line 65 of file Plane.cs.

66 {
67 if (Vector.IsHardwareAccelerated)
68 {
69 return Vector3.Dot(plane.Normal, value) + plane.D;
70 }
71 return plane.Normal.X * value.X + plane.Normal.Y * value.Y + plane.Normal.Z * value.Z + plane.D;
72 }

References System.Numerics.Plane.D, System.Numerics.Vector3.Dot(), System.Numerics.Vector< T >.IsHardwareAccelerated, System.Numerics.Plane.Normal, and System.value.