CADability dotNET
The ModOp2D type exposes the following members.
Methods
Name  Description  

Fit(array<GeoVector2D>[]()[][], array<GeoVector2D>[]()[][]) 
Constructs a modification, that transforms the src vectors to the dst vectors.
The length of src and dst must be 2. The resulting modification is any kind of an affinity, that
projects the src vectors to the dst vectors. The origin (0,0) remains fixed.
 
Fit(array<GeoPoint2D>[]()[][], array<GeoPoint2D>[]()[][], Boolean) 
Constructs a modification, that transforms the Src points to the Dst points.
The length of Src and Dst must be equal and less than 4. If the length is
1, the resulting ModOp is a translation, if the length is 2, the parameter
DoScale decides whether the resulting ModOp is a translation and rotation
(DoScale==false) or translation, rotation and scaling (DoScale==true).
If the length is 3, the resulting modification is any kind of an affinity, that
projects the src points to the dst points.
 
GetInverse 
Returns the inverse of this modification.
 
PlaneToplane 
Returns a 2d modification, that transforms from the coordinate system of the first
plane to the coordinate system of the second plane. If the planes ar not coincident,
the first plane is projected onto the second plane.
 
Rotate(SweepAngle) 
Creates a rotation about the origin
 
Rotate(GeoPoint2D, SweepAngle) 
Creates a rotation about a fixpoint
 
Scale(Double)  
Scale(Double, Double)  
Scale(GeoPoint2D, Double)  
To3D  
Translate(GeoVector2D) 
Creates a translation
 
Translate(Double, Double) 
Creates a translation
 
XYPart 
Returns a 2d ModOp which represents the 2d part of a 3d ModOp.
