# Matrix Methods

.NET Framework (current version)

Note

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   System.Windows.Media
Assembly:  WindowsBase (in WindowsBase.dll)

## Methods

NameDescription
Append(Matrix)

Appends the specified Matrix structure to this Matrix structure.

Equals(Matrix)

Determines whether the specified Matrix structure is identical to this instance.

Equals(Matrix, Matrix)

Determines whether the two specified Matrix structures are identical.

Equals(Object)

Determines whether the specified Object is a Matrix structure that is identical to this Matrix. (Overrides ValueType.Equals(Object).)

GetHashCode()

Returns the hash code for this Matrix structure. (Overrides ValueType.GetHashCode().)

GetType()

Gets the Type of the current instance.(Inherited from Object.)

Invert()

Inverts this Matrix structure.

Multiply(Matrix, Matrix)

Multiplies a Matrix structure by another Matrix structure.

Parse(String)

Converts a String representation of a matrix into the equivalent Matrix structure.

Prepend(Matrix)

Prepends the specified Matrix structure onto this Matrix structure.

Rotate(Double)

Applies a rotation of the specified angle about the origin of this Matrix structure.

RotateAt(Double, Double, Double)

Rotates this matrix about the specified point.

RotateAtPrepend(Double, Double, Double)

Prepends a rotation of the specified angle at the specified point to this Matrix structure.

RotatePrepend(Double)

Prepends a rotation of the specified angle to this Matrix structure.

Scale(Double, Double)

Appends the specified scale vector to this Matrix structure.

ScaleAt(Double, Double, Double, Double)

Scales this Matrix by the specified amount about the specified point.

ScaleAtPrepend(Double, Double, Double, Double)

Prepends the specified scale about the specified point of this Matrix.

ScalePrepend(Double, Double)

Prepends the specified scale vector to this Matrix structure.

SetIdentity()

Changes this Matrix structure into an identity matrix.

Skew(Double, Double)

Appends a skew of the specified degrees in the x and y dimensions to this Matrix structure.

SkewPrepend(Double, Double)

Prepends a skew of the specified degrees in the x and y dimensions to this Matrix structure.

ToString()

Creates a String representation of this Matrix structure. (Overrides ValueType.ToString().)

ToString(IFormatProvider)

Creates a String representation of this Matrix structure with culture-specific formatting information.

Transform(Point)

Transforms the specified point by the Matrix and returns the result.

Transform(Point[])

Transforms the specified points by this Matrix.

Transform(Vector)

Transforms the specified vector by this Matrix.

Transform(Vector[])

Transforms the specified vectors by this Matrix.

Translate(Double, Double)

Appends a translation of the specified offsets to this Matrix structure.

TranslatePrepend(Double, Double)

Prepends a translation of the specified offsets to this Matrix structure.

## Explicit Interface Implementations

NameDescription
IFormattable.ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.