BEPUutilities.Matrix3x2.Transform C# (CSharp) Method

Transform() public static method

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

Same methods

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