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

◆ Transform() [1/4]

static Plane Microsoft.Xna.Framework.Plane.Transform ( Plane plane,
Matrix matrix )
inlinestatic

Definition at line 141 of file Plane.cs.

142 {
143 Matrix.Invert(ref matrix, out var result);
144 float x = plane.Normal.X;
145 float y = plane.Normal.Y;
146 float z = plane.Normal.Z;
147 float d = plane.D;
148 Plane result2 = default(Plane);
149 result2.Normal.X = x * result.M11 + y * result.M12 + z * result.M13 + d * result.M14;
150 result2.Normal.Y = x * result.M21 + y * result.M22 + z * result.M23 + d * result.M24;
151 result2.Normal.Z = x * result.M31 + y * result.M32 + z * result.M33 + d * result.M34;
152 result2.D = x * result.M41 + y * result.M42 + z * result.M43 + d * result.M44;
153 return result2;
154 }
Plane(float a, float b, float c, float d)
Definition Plane.cs:19

References Microsoft.Xna.Framework.Plane.D, Microsoft.Xna.Framework.Matrix.Invert(), Microsoft.Xna.Framework.Plane.Normal, Microsoft.Xna.Framework.Vector3.X, Microsoft.Xna.Framework.Vector3.Y, and Microsoft.Xna.Framework.Vector3.Z.