Struct Matrix
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public struct Matrix
Constructors
Matrix(Double, Double, Double, Double, Double, Double)
Declaration
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)
Parameters
System.Double
m11
|
System.Double
m12
|
System.Double
m21
|
System.Double
m22
|
System.Double
offsetX
|
System.Double
offsetY
|
Properties
Determinant
Declaration
public double Determinant { get; }
Property Value
System.Double
|
HasInverse
Declaration
public bool HasInverse { get; }
Property Value
System.Boolean
|
Identity
IsIdentity
Declaration
public bool IsIdentity { get; }
Property Value
System.Boolean
|
M11
Gets or sets the value of the first row and first column of this System.Windows.Media.Matrix structure.
Declaration
public double M11 { get; set; }
Property Value
System.Double
The value of the first row and first column of this System.Windows.Media.Matrix. The default value is 1. |
M12
Gets or sets the value of the first row and second column of this System.Windows.Media.Matrix structure.
Declaration
public double M12 { get; set; }
Property Value
System.Double
The value of the first row and second column of this System.Windows.Media.Matrix. The default value is 0. |
M21
Gets or sets the value of the second row and first column of this System.Windows.Media.Matrix structure.
Declaration
public double M21 { get; set; }
Property Value
System.Double
The value of the second row and first column of this System.Windows.Media.Matrix. The default value is 0. |
M22
Gets or sets the value of the second row and second column of this System.Windows.Media.Matrix structure.
Declaration
public double M22 { get; set; }
Property Value
System.Double
The value of the second row and second column of this System.Windows.Media.Matrix structure. The default value is 1. |
OffsetX
Gets or sets the value of the third row and first column of this System.Windows.Media.Matrix structure.
Declaration
public double OffsetX { get; set; }
Property Value
System.Double
The value of the third row and first column of this System.Windows.Media.Matrix structure. The default value is 0. |
OffsetY
Gets or sets the value of the third row and second column of this System.Windows.Media.Matrix structure.
Declaration
public double OffsetY { get; set; }
Property Value
System.Double
The value of the third row and second column of this System.Windows.Media.Matrix structure. The default value is 0. |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Equals(Matrix)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
Invert()
Declaration
public void Invert()
Rotate(Double, Double, Double)
Declaration
public Matrix Rotate(double angle, double centerX = 0, double centerY = 0)
Parameters
System.Double
angle
|
System.Double
centerX
|
System.Double
centerY
|
Returns
Matrix
|
Scale(Double, Double, Double, Double)
Declaration
public Matrix Scale(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters
System.Double
scaleX
|
System.Double
scaleY
|
System.Double
centerX
|
System.Double
centerY
|
Returns
Matrix
|
ScaleAppend(Double, Double, Double, Double)
Declaration
public Matrix ScaleAppend(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters
System.Double
scaleX
|
System.Double
scaleY
|
System.Double
centerX
|
System.Double
centerY
|
Returns
Matrix
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Transform(Double)
Declaration
public double Transform(double d)
Parameters
System.Double
d
|
Returns
System.Double
|
Transform(Point)
Transform(Rect)
Translate(Double, Double)
Declaration
public void Translate(double offsetX, double offsetY)
Parameters
System.Double
offsetX
|
System.Double
offsetY
|
Operators
Equality(Matrix, Matrix)
Declaration
public static bool operator ==(Matrix a, Matrix b)
Parameters
Matrix
a
|
Matrix
b
|
Returns
System.Boolean
|
Inequality(Matrix, Matrix)
Declaration
public static bool operator !=(Matrix a, Matrix b)
Parameters
Matrix
a
|
Matrix
b
|
Returns
System.Boolean
|
Multiply(Matrix, Matrix)
Declaration
public static Matrix operator *(Matrix matrix1, Matrix matrix2)
Parameters
Matrix
matrix1
|
Matrix
matrix2
|
Returns
Matrix
|