New to Telerik UI for WinForms? Start a free 30-day trial

Matrix

Struct

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public struct Matrix

Constructors

C#
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)
Parameters:m11doublem12doublem21doublem22doubleoffsetXdoubleoffsetYdouble

Properties

C#
public double Determinant { get; }
C#
public bool HasInverse { get; }
C#
public static Matrix Identity { get; }
C#
public bool IsIdentity { get; }

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

C#
public double M11 { get; set; }
Property Value:

The value of the first row and first column of this Matrix. The default value is 1.

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

C#
public double M12 { get; set; }
Property Value:

The value of the first row and second column of this Matrix. The default value is 0.

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

C#
public double M21 { get; set; }
Property Value:

The value of the second row and first column of this Matrix. The default value is 0.

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

C#
public double M22 { get; set; }
Property Value:

The value of the second row and second column of this Matrix structure. The default value is 1.

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

C#
public double OffsetX { get; set; }
Property Value:

The value of the third row and first column of this Matrix structure. The default value is 0.

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

C#
public double OffsetY { get; set; }
Property Value:

The value of the third row and second column of this Matrix structure. The default value is 0.

Methods

C#
public bool Equals(Matrix value)
Parameters:valueMatrixReturns:

bool

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: ValueType.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

C#
public void Invert()
C#
public Matrix Rotate(double angle, double centerX = 0, double centerY = 0)
Parameters:angledoublecenterXdoublecenterYdoubleReturns:

Matrix

C#
public Matrix Scale(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters:scaleXdoublescaleYdoublecenterXdoublecenterYdoubleReturns:

Matrix

C#
public Matrix ScaleAppend(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters:scaleXdoublescaleYdoublecenterXdoublecenterYdoubleReturns:

Matrix

C#
public override string ToString()
Returns:

string

Overrides: ValueType.ToString()

C#
public double Transform(double d)
Parameters:ddoubleReturns:

double

C#
public Point Transform(Point point)
Parameters:pointPointReturns:

Point

C#
public Rect Transform(Rect rect)
Parameters:rectRectReturns:

Rect

C#
public void Translate(double offsetX, double offsetY)
Parameters:offsetXdoubleoffsetYdouble

Operators

C#
public static bool operator !=(Matrix a, Matrix b)
Parameters:aMatrixbMatrixReturns:

bool

C#
public static Matrix operator *(Matrix matrix1, Matrix matrix2)
Parameters:matrix1Matrixmatrix2MatrixReturns:

Matrix

C#
public static bool operator ==(Matrix a, Matrix b)
Parameters:aMatrixbMatrixReturns:

bool