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

◆ Transform() [1/2]

static Plane System.Numerics.Plane.Transform ( Plane plane,
Matrix4x4 matrix )
inlinestatic

Definition at line 107 of file Plane.cs.

108 {
109 Matrix4x4.Invert(matrix, out var result);
110 float x = plane.Normal.X;
111 float y = plane.Normal.Y;
112 float z = plane.Normal.Z;
113 float d = plane.D;
114 return new Plane(x * result.M11 + y * result.M12 + z * result.M13 + d * result.M14, x * result.M21 + y * result.M22 + z * result.M23 + d * result.M24, x * result.M31 + y * result.M32 + z * result.M33 + d * result.M34, x * result.M41 + y * result.M42 + z * result.M43 + d * result.M44);
115 }
Plane(float x, float y, float z, float d)
Definition Plane.cs:13

References System.Numerics.Plane.Plane(), System.Numerics.Plane.D, System.Numerics.Matrix4x4.Invert(), System.Numerics.Plane.Normal, System.Numerics.Vector3.X, System.Numerics.Vector3.Y, and System.Numerics.Vector3.Z.