Matrix2d Methods

The following tables list the members exposed by the Matrix2d type.

Methods
 
Name Description
Public method Apply(double, double, out double, out double, bool)
Public method Apply(ref double, ref double)
Public method ApplyInverse(double, double, out double, out double, bool)
Public method ApplyInverse(ref double, ref double)
Public method Static CreateMirroring(Point2d, Point2d) Creates a matrix that reflects stuff over the line passing through two given points.
Public method Static CreateRotation(double) Computes a new matrix which is a pure rotation matrix.
Public method Static CreateRotation(double, Point2d) Computes a new matrix that represents rotation around a given point.
Public method Static CreateScaling(double) Computes a new matrix which is a pure scaling matrix where x and y scale is the same.
Public method Static CreateScaling(double, Point2d) Computes a new matrix which is a scaling matrix with a given origo.
Public method Static CreateScaling(double, double) Computes a new matrix which is a 'stretch' matrix,that is scaling in x and y might be diffrent.
Public method Static CreateScaling(double, double, Point2d) Computes a new matrix which is a 'stretch' matrix using a given origo, that is scaling in x and y might be diffrent.
Public method Static CreateShearing(double, double) Returns a new shear matrix, which has its x axis is tilted xshearRadians from local x axis. y axis is tilted yshearRadians from local y axis. The shearing radians are clamped to be between -89 to 89 degrees.
Public method Static CreateTranslation(double, double) Creates a translation vector using two doubles for dx,dy.
Public method Eigenvalues(out double, out double) Calculates the eigenvalues of a 2x2 matrix
Public method Eigenvector(double)
Public method ExtractRotation() Extract the rotation portion of the matrix.
Public method ExtractScaling() Extracts the scaling portion of the matrix.
Public method ExtractTranslation() Extract the translation portion of the matrix.
Public method ExtractTranslationVector()
Public method IsMirroring() Checks if this matrix, when applied on an object will reflect it, for example if the direction of an arc will switch from CW to CCW when transformet with it.
Public method IsUniform() Checks if the matrix contains a uniform scaling
Public method SetIdentity() Modifies the matrix in-place so that it is a identiy matrix.
Public method ToString() Creates a string suitable for debugging purposes.
Top
Name Description
Operator Static Multiply Multiplies a matrix with another. Mathematically: result = b * a (Note: reverse order! For convenience when writing larger transforms)
Top

In this article

Definition