Muokkaa

Jaa


Matrix Struct

Definition

Represents a 3x3 affine transformation matrix used for transformations in two-dimensional space.

public value class Matrix : IFormattable
[System.Security.SecurityCritical]
public struct Matrix : IFormattable
[<System.Security.SecurityCritical>]
type Matrix = struct
    interface IFormattable
Public Structure Matrix
Implements IFormattable
Inheritance
Matrix
Attributes
Implements

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Matrix struct. For more information, see Matrix in the UWP API reference.

Constructors

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

Initializes a Matrix struct.

Properties

Identity

Gets an identity matrix.

IsIdentity

Gets a value that indicates whether this Matrix struct is an identity matrix.

M11

Gets or sets the value of the first row and first column of this Matrix struct.

M12

Gets or sets the value of the first row and second column of this Matrix struct.

M21

Gets or sets the value of the second row and first column of this Matrix struct.

M22

Gets or sets the value of the second row and second column of this Matrix struct.

OffsetX

Gets or sets the value of the third row and first column of this Matrix struct.

OffsetY

Gets or sets the value of the third row and second column of this Matrix struct.

Methods

Equals(Matrix)

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

Equals(Object)

Determines whether the specified Object is a Matrix struct that is identical to this Matrix.

GetHashCode()

Returns the hash code for this Matrix struct.

ToString()

Creates a String representation of this Matrix struct.

ToString(IFormatProvider)

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

Transform(Point)

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

Operators

Equality(Matrix, Matrix)

Determines whether the two specified Matrix structs are identical.

Inequality(Matrix, Matrix)

Determines whether the two specified Matrix structs are not identical.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)

For a description of this member, see ToString(String, IFormatProvider).

Applies to

See also