MatrixD Class

MatrixD is a special 2D matrix with offset and information about rotation and mirroring.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public class MatrixD
Inheritance
Object    MatrixD

Constructors

MatrixD Create a instance of MatrixD.
MatrixD(Double, Double, Double, Double, Double, Double) Create a instance of MatrixD with fix values.

Properties

Identity 
IsMirrored Is mirrored mean is this matrix mirrored?
IsRotated Is rotated mean is this matrix a rotation matrix?
Item Direct check of value on position.
OffsetX Offset of the matrix X.
OffsetY Offset of ths matrix Y.

Methods

CalculateMirrored 
Clone Clone the matrix.
Equals
(Overrides ObjectEquals(Object))
GetHashCode
(Overrides ObjectGetHashCode)
GetRotation Calculate the rotation for this matrix.
GetScaling Calculates the x-Scaling of this matrix
Invert Invert this matrix.
InvertedTransform(PointD) Use inverted matrix and transform the point.
InvertedTransform(RectangleD) Use inverted matrix and transform the point.
IsIdentity 
Multiply Matrix multiply with other matrix.
Reset Reset matrix and set it to itentity.
Rotate(Double) Rotate the matrix around the angle. Default is prepend.
Rotate(Double, Boolean) Rotate matrix with angle.
RotateAt(Double, PointD) Rotate matrix at position with given angle.
RotateAt(Double, PointD, Boolean) Rotate matrix at position with given angle.
Scale(Double, Double) Scale the matrix in X and Y direction.
Scale(Double, Double, Boolean) Scale the matrix in X and Y direction.
ToGDIMatrix 
ToString Write the matrix as string.
Transform(PointD) Transform the point and return the result as a new point.
Transform(PointD) Transform the point.
Transform(PointD) Transform the array of points.
Transform(RectangleD) Trasform all corners of a rectangle.
Translate(Double, Double) Translate the matrix in X and Y direction.
Translate(Double, Double, Boolean) Translate the matrix in X and Y direction.

Extension Methods

See Also