Click or drag to resize

MatrixD2D Class

Represents a 2D transformation matrix.
Inheritance Hierarchy
SystemObject
  Altaxo.GeometryMatrixD2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class MatrixD2D : ICloneable

The MatrixD2D type exposes the following members.

Constructors
 NameDescription
Public methodMatrixD2DInitializes a new instance of the MatrixD2D class
Public methodMatrixD2D(MatrixD2D)Initializes a new instance of the MatrixD2D class
Public methodMatrixD2D(Double, Double, Double, Double, Double, Double)Initializes a new instance of the MatrixD2D class
Top
Properties
 NameDescription
Public propertyDeterminant 
Public propertyDX 
Public propertyDY 
Public propertyElements 
Public propertyRotation 
Public propertyRX 
Public propertyRY 
Public propertyScaleX 
Public propertyScaleY 
Public propertyShear 
Public propertySX 
Public propertySY 
Public propertyX 
Public propertyY 
Top
Methods
 NameDescription
Public methodAppendInverseTransform 
Public methodAppendTransform(MatrixD2D) 
Public methodAppendTransform(Double, Double, Double, Double, Double, Double) 
Public methodClone 
Public methodCopyFrom(MatrixD2D) 
Public methodCopyFrom(Object) 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInverse Gets the inverse of the matrix.
Public methodInverseTransformPoint(PointD2D) 
Public methodInverseTransformPoint(Double, Double) 
Public methodInverseTransformVector(PointD2D) 
Public methodInverseTransformVector(Double, Double) 
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPrependInverseTransform 
Public methodPrependTransform(MatrixD2D) 
Public methodPrependTransform(Double, Double, Double, Double, Double, Double) 
Public methodReset 
Public methodRotateAppend 
Public methodRotatePrepend 
Public methodScaleAppend 
Public methodScalePrepend 
Public methodSetElements 
Public methodSetTranslationRotationShearxScale 
Public methodShearAppend 
Public methodShearPrepend 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTransformPoint(PointD2D) 
Public methodTransformPoint(Double, Double) 
Public methodTransformVector(PointD2D) 
Public methodTransformVector(Double, Double) 
Public methodTranslateAppend 
Public methodTranslatePrepend 
Top
Extension Methods
Remarks
The following transformation is represented by this matrix:
C#
            |sx, ry, 0|
|x, y, 1| * |rx, sy, 0| = |x', y', 1|
            |dx, dy, 1|
where (x,y) are the world coordinates, and (x', y') are the page coordinates.

An alternative interpretation of this matrix is a rhombus, where the absolute coordinate of its origin is given by (dx, dy), and which is spanned by the two basis vectors (sx,ry) and (rx, sy). By inverse transformation of a given point one gets the coordinates inside this rhombus in terms of the spanning vectors.

See Also