RadMatrix
Represents a light-weight 3*3 Matrix to be used for GDI+ transformations.
Definition
Namespace:Telerik.WinControls.Layouts
Assembly:Telerik.WinControls.dll
Syntax:
public struct RadMatrix
Constructors
Initializes a new RadMatrix, using the specified parameters.
public RadMatrix(float m11, float m12, float m21, float m22, float dx, float dy)
The matrix element at row 1, column 1.
m12floatThe matrix element at row 1, column 2.
m21floatThe matrix element at row 2, column 1.
m22floatThe matrix element at row 2, column 2.
dxfloatThe X-axis translation component.
dyfloatThe Y-axis translation component.
Initializes a new RadMatrix, rotated by the specified angle (in degrees) at origin (0, 0).
Initializes a new RadMatrix, using the elements of the specified GDI+ Matrix instance.
public RadMatrix(Matrix gdiMatrix)
The GDI+ Matrix to copy elements from.
Initializes a new RadMatrix, applying the specified X and Y values as DX and DY members of the matrix.
public RadMatrix(PointF offset)
The point containing the X and Y offset values.
Copy constructor.
Fields
public const float DegreeToRadian = 0.017453294
public const float RadianToDegree = 57.295773
Properties
Gets the determinant - [(M11 * M22) - (M12 * M21)] - of this Matrix.
public float Determinant { get; }
Gets all the six fields of the matrix as an array.
public float[] Elements { get; }
Determines whether this matrix equals to the Identity one.
public bool IsIdentity { get; }
Determines whether this matrix may be inverted. That is to have non-zero determinant.
public bool IsInvertible { get; }
Gets the rotation (in degrees) applied to this matrix.
public float Rotation { get; }
Methods
public void Invert()
public void Reset()
public void RotateAt(float angle, PointF origin, MatrixOrder order)
public void Scale(float scaleX, float scaleY, MatrixOrder order)
public void Translate(float dx, float dy, MatrixOrder order)