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

◆ Lerp() [1/2]

static Matrix Microsoft.Xna.Framework.Matrix.Lerp ( Matrix matrix1,
Matrix matrix2,
float amount )
inlinestatic

Definition at line 1814 of file Matrix.cs.

1815 {
1816 Matrix result = default(Matrix);
1817 result.M11 = matrix1.M11 + (matrix2.M11 - matrix1.M11) * amount;
1818 result.M12 = matrix1.M12 + (matrix2.M12 - matrix1.M12) * amount;
1819 result.M13 = matrix1.M13 + (matrix2.M13 - matrix1.M13) * amount;
1820 result.M14 = matrix1.M14 + (matrix2.M14 - matrix1.M14) * amount;
1821 result.M21 = matrix1.M21 + (matrix2.M21 - matrix1.M21) * amount;
1822 result.M22 = matrix1.M22 + (matrix2.M22 - matrix1.M22) * amount;
1823 result.M23 = matrix1.M23 + (matrix2.M23 - matrix1.M23) * amount;
1824 result.M24 = matrix1.M24 + (matrix2.M24 - matrix1.M24) * amount;
1825 result.M31 = matrix1.M31 + (matrix2.M31 - matrix1.M31) * amount;
1826 result.M32 = matrix1.M32 + (matrix2.M32 - matrix1.M32) * amount;
1827 result.M33 = matrix1.M33 + (matrix2.M33 - matrix1.M33) * amount;
1828 result.M34 = matrix1.M34 + (matrix2.M34 - matrix1.M34) * amount;
1829 result.M41 = matrix1.M41 + (matrix2.M41 - matrix1.M41) * amount;
1830 result.M42 = matrix1.M42 + (matrix2.M42 - matrix1.M42) * amount;
1831 result.M43 = matrix1.M43 + (matrix2.M43 - matrix1.M43) * amount;
1832 result.M44 = matrix1.M44 + (matrix2.M44 - matrix1.M44) * amount;
1833 return result;
1834 }
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

References Microsoft.Xna.Framework.Matrix.M11, Microsoft.Xna.Framework.Matrix.M12, Microsoft.Xna.Framework.Matrix.M13, Microsoft.Xna.Framework.Matrix.M14, Microsoft.Xna.Framework.Matrix.M21, Microsoft.Xna.Framework.Matrix.M22, Microsoft.Xna.Framework.Matrix.M23, Microsoft.Xna.Framework.Matrix.M24, Microsoft.Xna.Framework.Matrix.M31, Microsoft.Xna.Framework.Matrix.M32, Microsoft.Xna.Framework.Matrix.M33, Microsoft.Xna.Framework.Matrix.M34, Microsoft.Xna.Framework.Matrix.M41, Microsoft.Xna.Framework.Matrix.M42, Microsoft.Xna.Framework.Matrix.M43, and Microsoft.Xna.Framework.Matrix.M44.