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

◆ Transform() [12/16]

static Vector4 Microsoft.Xna.Framework.Vector4.Transform ( Vector4 vector,
Matrix matrix )
inlinestatic

Definition at line 439 of file Vector4.cs.

440 {
441 float x = vector.X * matrix.M11 + vector.Y * matrix.M21 + vector.Z * matrix.M31 + vector.W * matrix.M41;
442 float y = vector.X * matrix.M12 + vector.Y * matrix.M22 + vector.Z * matrix.M32 + vector.W * matrix.M42;
443 float z = vector.X * matrix.M13 + vector.Y * matrix.M23 + vector.Z * matrix.M33 + vector.W * matrix.M43;
444 float w = vector.X * matrix.M14 + vector.Y * matrix.M24 + vector.Z * matrix.M34 + vector.W * matrix.M44;
445 Vector4 result = default(Vector4);
446 result.X = x;
447 result.Y = y;
448 result.Z = z;
449 result.W = w;
450 return result;
451 }
Vector4(float x, float y, float z, float w)
Definition Vector4.cs:49

References Microsoft.Xna.Framework.Matrix.M41, Microsoft.Xna.Framework.Matrix.M42, Microsoft.Xna.Framework.Matrix.M43, and Microsoft.Xna.Framework.Matrix.M44.