MatrixHelper MatrixHelper MatrixHelper MatrixHelper Class

Definition

Provides static helper methods for processing Matrix values. C# and Microsoft Visual Basic code should use members of Matrix instead.

public : sealed class MatrixHelper : IMatrixHelperpublic sealed class MatrixHelper : IMatrixHelperPublic NotInheritable Class MatrixHelper Implements IMatrixHelper// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Identity Identity Identity Identity

Gets a static constructed Matrix where the values established are representative of an Identity transform. C# and Microsoft Visual Basic code should use Identity instead.

public : static Matrix Identity { get; }public static Matrix Identity { get; }Public Static ReadOnly Property Identity As Matrix// This API is not available in Javascript.
Value
Matrix Matrix Matrix Matrix

A static constructed Matrix where the values established are representative of an Identity transform.

Methods

FromElements(Double, Double, Double, Double, Double, Double) FromElements(Double, Double, Double, Double, Double, Double) FromElements(Double, Double, Double, Double, Double, Double) FromElements(Double, Double, Double, Double, Double, Double)

Creates a new Matrix based on provided initial Matrix data values. C# and Microsoft Visual Basic code should use Matrix constructor instead.

public : static Matrix FromElements(double m11, double m12, double m21, double m22, double offsetX, double offsetY)public static Matrix FromElements(Double m11, Double m12, Double m21, Double m22, Double offsetX, Double offsetY)Public Static Function FromElements(m11 As Double, m12 As Double, m21 As Double, m22 As Double, offsetX As Double, offsetY As Double) As Matrix// This API is not available in Javascript.
Parameters
m11
double Double Double Double

The initial value of M11 for the created Matrix.

m12
double Double Double Double

The initial value of M12 for the created Matrix.

m21
double Double Double Double

The initial value of M21 for the created Matrix.

m22
double Double Double Double

The initial value of M22 for the created Matrix.

offsetX
double Double Double Double

The initial value of OffsetX for the created Matrix.

offsetY
double Double Double Double

The initial value of OffsetY for the created Matrix.

Returns

GetIsIdentity(Matrix) GetIsIdentity(Matrix) GetIsIdentity(Matrix) GetIsIdentity(Matrix)

Returns whether the provided Matrix represents an Identity transform. C# and Microsoft Visual Basic code should use IsIdentity instead.

public : static PlatForm::Boolean GetIsIdentity(Matrix target)public static bool GetIsIdentity(Matrix target)Public Static Function GetIsIdentity(target As Matrix) As bool// This API is not available in Javascript.
Parameters
target
Matrix Matrix Matrix Matrix

The target Matrix to evaluate.

Returns
PlatForm::Boolean bool bool bool

true if the Matrix represents an Identity transform; otherwise, false.

Transform(Matrix, Point) Transform(Matrix, Point) Transform(Matrix, Point) Transform(Matrix, Point)

Transforms a provided Matrix using a Point input, and returns a Point result. C# and Microsoft Visual Basic code should use Transform instead.

public : static Point Transform(Matrix target, Point point)public static Point Transform(Matrix target, Point point)Public Static Function Transform(target As Matrix, point As Point) As Point// This API is not available in Javascript.
Parameters
target
Matrix Matrix Matrix Matrix

The target Matrix to evaluate.

point
Point Point Point Point

The Point input for the transform operation.

Returns

The Point result of the transform.