# MatrixMatrixMatrixMatrix 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``````
``````type Matrix = struct
interface IFormattable``````
``````Public Structure Matrix
Implements IFormattable``````
Inheritance
MatrixMatrixMatrixMatrix
Attributes
Implements

## Constructors

 Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double) Initializes a Matrix struct.

## Properties

 Identity Identity Identity Identity Gets an identity matrix. IsIdentity IsIdentity IsIdentity IsIdentity Gets a value that indicates whether this Matrix struct is an identity matrix. M11 M11 M11 M11 Gets or sets the value of the first row and first column of this Matrix struct. M12 M12 M12 M12 Gets or sets the value of the first row and second column of this Matrix struct. M21 M21 M21 M21 Gets or sets the value of the second row and first column of this Matrix struct. M22 M22 M22 M22 Gets or sets the value of the second row and second column of this Matrix struct. OffsetX OffsetX OffsetX OffsetX Gets or sets the value of the third row and first column of this Matrix struct. OffsetY OffsetY OffsetY OffsetY Gets or sets the value of the third row and second column of this Matrix struct.

## Methods

 Equals(Object) Equals(Object) Equals(Object) Equals(Object) Determines whether the specified Object is a Matrix struct that is identical to this Matrix. Equals(Matrix) Equals(Matrix) Equals(Matrix) Equals(Matrix) Determines whether the specified Matrix struct is identical to this instance. GetHashCode() GetHashCode() GetHashCode() GetHashCode() Returns the hash code for this Matrix struct. ToString() ToString() ToString() ToString() Creates a String representation of this Matrix struct. ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) Creates a String representation of this Matrix struct with culture-specific formatting information. Transform(Point) Transform(Point) Transform(Point) Transform(Point) Transforms the specified point by the Matrix and returns the result.

## Operators

 Equality(Matrix, Matrix) Equality(Matrix, Matrix) Equality(Matrix, Matrix) Equality(Matrix, Matrix) Determines whether the two specified Matrix structs are identical. Inequality(Matrix, Matrix) Inequality(Matrix, Matrix) Inequality(Matrix, Matrix) Inequality(Matrix, Matrix) Determines whether the two specified Matrix structs are not identical.

## Explicit Interface Implementations

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