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

◆ TransformNormal() [2/4]

static Vector3 Microsoft.Xna.Framework.Vector3.TransformNormal ( Vector3 normal,
Matrix matrix )
inlinestatic

Definition at line 429 of file Vector3.cs.

430 {
431 float x = normal.X * matrix.M11 + normal.Y * matrix.M21 + normal.Z * matrix.M31;
432 float y = normal.X * matrix.M12 + normal.Y * matrix.M22 + normal.Z * matrix.M32;
433 float z = normal.X * matrix.M13 + normal.Y * matrix.M23 + normal.Z * matrix.M33;
434 Vector3 result = default(Vector3);
435 result.X = x;
436 result.Y = y;
437 result.Z = z;
438 return result;
439 }
Vector3(float x, float y, float z)
Definition Vector3.cs:66

References Microsoft.Xna.Framework.Matrix.M31, Microsoft.Xna.Framework.Matrix.M32, and Microsoft.Xna.Framework.Matrix.M33.