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

◆ Transform() [7/16]

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

Definition at line 387 of file Vector4.cs.

388 {
389 float x = position.X * matrix.M11 + position.Y * matrix.M21 + matrix.M41;
390 float y = position.X * matrix.M12 + position.Y * matrix.M22 + matrix.M42;
391 float z = position.X * matrix.M13 + position.Y * matrix.M23 + matrix.M43;
392 float w = position.X * matrix.M14 + position.Y * matrix.M24 + matrix.M44;
393 Vector4 result = default(Vector4);
394 result.X = x;
395 result.Y = y;
396 result.Z = z;
397 result.W = w;
398 return result;
399 }
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.