点击或拖拽改变大小

Matrix 结构

3*3 2D变换矩阵

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
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
参见