Edit

Share via


MatrixExtensions Class

Definition

Provides a set of extensions to the Matrix struct.

public static class MatrixExtensions
type MatrixExtensions = class
Public Module MatrixExtensions
Inheritance
MatrixExtensions

Methods

HasInverse(Matrix)

Implements WPF's Matrix.HasInverse logic.

Multiply(Matrix, Matrix)

Multiply this matrix to the given matrix and return the result.

Rotate(Matrix, Double)

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

RotateAt(Matrix, Double, Double, Double)

Rotates this matrix about the specified point and returns the new result.

Round(Matrix, Int32)

Rounds the non-offset elements of a matrix to avoid issues due to floating point imprecision and returns the result.

Scale(Matrix, Double, Double)

Appends the specified scale vector to this Matrix structure and returns the result.

ScaleAt(Matrix, Double, Double, Double, Double)

Scales this Matrix by the specified amount about the specified point and returns the result.

Skew(Matrix, Double, Double)

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

Translate(Matrix, Double, Double)

Translates the matrix by the given amount and returns the result.

Applies to