Struct
Matrix

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

cs-api-definition
public struct Matrix

Constructors

Matrix(double, double, double, double, double, double)

Declaration

cs-api-definition
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)

Parameters

m11

double

m12

double

m21

double

m22

double

offsetX

double

offsetY

double

Properties

Determinant

Declaration

cs-api-definition
public double Determinant { get; }

Property Value

double

HasInverse

Declaration

cs-api-definition
public bool HasInverse { get; }

Property Value

bool

Identity

Declaration

cs-api-definition
public static Matrix Identity { get; }

Property Value

Matrix

IsIdentity

Declaration

cs-api-definition
public bool IsIdentity { get; }

Property Value

bool

M11

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

Declaration

cs-api-definition
public double M11 { get; set; }

Property Value

double

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

M12

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

Declaration

cs-api-definition
public double M12 { get; set; }

Property Value

double

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

M21

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

Declaration

cs-api-definition
public double M21 { get; set; }

Property Value

double

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

M22

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

Declaration

cs-api-definition
public double M22 { get; set; }

Property Value

double

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

OffsetX

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

Declaration

cs-api-definition
public double OffsetX { get; set; }

Property Value

double

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

OffsetY

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

Declaration

cs-api-definition
public double OffsetY { get; set; }

Property Value

double

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

Methods

Equals(Matrix)

Declaration

cs-api-definition
public bool Equals(Matrix value)

Parameters

value

Matrix

Returns

bool

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides ValueType.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides ValueType.GetHashCode()

Invert()

Declaration

cs-api-definition
public void Invert()

Rotate(double, double, double)

Declaration

cs-api-definition
public Matrix Rotate(double angle, double centerX = 0, double centerY = 0)

Parameters

angle

double

centerX

double

centerY

double

Returns

Matrix

Scale(double, double, double, double)

Declaration

cs-api-definition
public Matrix Scale(double scaleX, double scaleY, double centerX = 0, double centerY = 0)

Parameters

scaleX

double

scaleY

double

centerX

double

centerY

double

Returns

Matrix

ScaleAppend(double, double, double, double)

Declaration

cs-api-definition
public Matrix ScaleAppend(double scaleX, double scaleY, double centerX = 0, double centerY = 0)

Parameters

scaleX

double

scaleY

double

centerX

double

centerY

double

Returns

Matrix

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides ValueType.ToString()

Transform(Point)

Declaration

cs-api-definition
public Point Transform(Point point)

Parameters

point

Point

Returns

Point

Transform(Rect)

Declaration

cs-api-definition
public Rect Transform(Rect rect)

Parameters

rect

Rect

Returns

Rect

Transform(double)

Declaration

cs-api-definition
public double Transform(double d)

Parameters

d

double

Returns

double

Translate(double, double)

Declaration

cs-api-definition
public void Translate(double offsetX, double offsetY)

Parameters

offsetX

double

offsetY

double

Operators

operator !=(Matrix, Matrix)

Declaration

cs-api-definition
public static bool operator !=(Matrix a, Matrix b)

Parameters

a

Matrix

b

Matrix

Returns

bool

operator *(Matrix, Matrix)

Declaration

cs-api-definition
public static Matrix operator *(Matrix matrix1, Matrix matrix2)

Parameters

matrix1

Matrix

matrix2

Matrix

Returns

Matrix

operator ==(Matrix, Matrix)

Declaration

cs-api-definition
public static bool operator ==(Matrix a, Matrix b)

Parameters

a

Matrix

b

Matrix

Returns

bool