BEPUutilities.Matrix2x3.Transform C# (CSharp) Method

Transform() public static method

Transforms the vector by the matrix.
public static Transform ( Vector2 &v, Matrix2x3 &matrix, Microsoft.Xna.Framework.Vector3 &result ) : void
v Microsoft.Xna.Framework.Vector2 Vector2 to transform. Considered to be a row vector for purposes of multiplication.
matrix Matrix2x3 Matrix to use as the transformation.
result Microsoft.Xna.Framework.Vector3 Row vector product of the transformation.
return void
        public static void Transform(ref Vector2 v, ref Matrix2x3 matrix, out Vector3 result)
        {
#if !WINDOWS
            result = new Vector3();
#endif
            result.X = v.X * matrix.M11 + v.Y * matrix.M21;
            result.Y = v.X * matrix.M12 + v.Y * matrix.M22;
            result.Z = v.X * matrix.M13 + v.Y * matrix.M23;
        }

Same methods

Matrix2x3::Transform ( Microsoft.Xna.Framework.Vector3 &v, Matrix2x3 &matrix, Vector2 &result ) : void