Skip to main content

Matrix Methods

Methods

Append(Matrix)Appends another matrix as post-multiplication operation. Equivalent to this * value;
ContainsPerspective()Determines if the current matrix contains perspective (non-affine) transforms (true) or only (affine) transforms that could be mapped into an 2x3 matrix (false).
CreateRotation(Double)Creates a rotation matrix using the given rotation in radians.
CreateRotation(Double, Point)Creates a rotation matrix using the given rotation in radians around center point.
CreateScale(Vector)Creates a scale matrix from the given vector scale.
CreateScale(Double, Double)Creates a scale matrix from the given X and Y components.
CreateSkew(Double, Double)Creates a skew matrix from the given axis skew angles in radians.
CreateTranslation(Vector)Creates a translation matrix from the given vector.
CreateTranslation(Double, Double)Creates a translation matrix from the given X and Y components.
Equals(Matrix)Returns a boolean indicating whether the matrix is equal to the other given matrix.
Equals(Object)Returns a boolean indicating whether the given Object is equal to this matrix instance.
(Overrides ValueType.Equals(Object))
GetDeterminant()Calculates the determinant for this matrix.
GetHashCode()Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Invert()Inverts the Matrix.
Parse(String)Parses a Matrix string.
Prepend(Matrix)Prepends another matrix as pre-multiplication operation. Equivalent to value * this;
ToRadians(Double)Converts an angle in degrees to radians.
ToString()Returns a String representing this matrix instance.
(Overrides ValueType.ToString())
Transform(Point)Transforms the point with the matrix
TryDecomposeTransform(Matrix, Matrix.Decomposed)Decomposes given matrix into transform operations.
TryInvert(Matrix)Attempts to invert the Matrix.

Extension Methods

ToSKMatrix()
(Defined by SkiaSharpExtensions)

See Also

Reference

Matrix Structure
Avalonia Namespace