﻿Matrix 结构  # Matrix 结构

3*3 2D变换矩阵 语法
C#
```[SerializableAttribute]
[TypeConverterAttribute(typeof(MatrixConverter))]
public struct Matrix : IFormattable```

Matrix 类型公开以下成员。 构造函数
名称说明 Matrix
Creates a matrix of the form / m11 scalex, m12 skewx, 0 \ | m21 skewy, m22 scaley, 0 | \ offsetX, offsetY, 1 /
Top 属性
名称说明 Determinant
The determinant of this matrix HasInverse
HasInverse Property - returns true if this matrix is invertable, false otherwise.  Identity
Identity IsIdentity
Tests whether or not a given transform is an identity transform 测试给定的变换是否是恒等变换 M11
M11 scalex M12
M12 skewy M21
M22 skewx M22
M22 scaley OffsetX
OffsetX OffsetY
OffsetY
Top 方法
名称说明 Append
Append - "this" becomes this * matrix, the same as this *= matrix.  CreateTranslation
Creates a translation matrix from the given vector. Equals(Object)
Equals - compares this Matrix with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
(重写 ValueTypeEquals(Object).) Equals(Matrix)
Equals - compares this Matrix with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.  Equals(Matrix, Matrix)
Compares two Matrix instances for object equality. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. GetHashCode
Returns the HashCode for this Matrix
(重写 ValueTypeGetHashCode.) GetType (继承自 Object。) Invert
Replaces matrix with the inverse of the transformation. This will throw an InvalidOperationException if !HasInverse  Multiply
Multiply Prepend
Prepend - "this" becomes matrix * this, the same as this = matrix * this. Rotate
Rotates this matrix about the origin RotateAt
Rotates this matrix about the given point RotateAtPrepend
Prepends a rotation about the given point to "this" RotatePrepend
Prepends a rotation about the origin to "this" Scale
Scales this matrix around the origin ScaleAt
Scales this matrix around the center provided ScaleAtPrepend
Prepends a scale around the center provided to "this" ScalePrepend
Prepends a scale around the origin to "this" SetIdentity
Sets the matrix to identity. Skew
Skews this matrix SkewPrepend
Prepends a skew to this matrix ToString
Creates a string representation of this object based on the current culture.
(重写 ValueTypeToString.) ToString(IFormatProvider)
Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null, the CurrentCulture is used. Transform(Point)
Transform - returns the result of transforming the point by this matrix Transform(Point)
Transform - Transforms each point in the array by this matrix Transform(Vector)
Transform - returns the result of transforming the Vector by this matrix. Transform(Vector)
Transform - Transforms each Vector in the array by this matrix. Translate
Translates this matrix TranslatePrepend
Prepends a translation to this matrix
Top 运算符
名称说明  Equality
Compares two Matrix instances for exact equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, float.NaN is not equal to itself.  Inequality
Compares two Matrix instances for exact inequality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, float.NaN is not equal to itself.  Multiply
Multiplies two transformations.
Top 扩展方法
名称说明 ConvertTo

(由 ObjectExtenstions 定义。) Delay

(由 ObjectExtenstions 定义。) Equal

(由 ObjectExtenstions 定义。) GetCreationCode (由 ObjectExtenstions 定义。) GetPropretyValue

(由 ObjectExtenstions 定义。) GetValue

(由 FastReflectionExtensions 定义。) Invoke

(由 FastReflectionExtensions 定义。) SetPropretyValue

(由 ObjectExtenstions 定义。) SetValue

(由 FastReflectionExtensions 定义。) ToMatrix (由 Extension 定义。)
Top 参见