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

◆ CreateTranslation() [1/4]

static Matrix Microsoft.Xna.Framework.Matrix.CreateTranslation ( float xPosition,
float yPosition,
float zPosition )
inlinestatic

Definition at line 480 of file Matrix.cs.

481 {
482 Matrix result = default(Matrix);
483 result.M11 = 1f;
484 result.M12 = 0f;
485 result.M13 = 0f;
486 result.M14 = 0f;
487 result.M21 = 0f;
488 result.M22 = 1f;
489 result.M23 = 0f;
490 result.M24 = 0f;
491 result.M31 = 0f;
492 result.M32 = 0f;
493 result.M33 = 1f;
494 result.M34 = 0f;
495 result.M41 = xPosition;
496 result.M42 = yPosition;
497 result.M43 = zPosition;
498 result.M44 = 1f;
499 return result;
500 }
Matrix(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
Definition Matrix.cs:210