CADability dotNET
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.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static ModOp2D Fit(
	GeoPoint2D[] Src,
	GeoPoint2D[] Dst,
	bool DoScale
)
Visual Basic
Public Shared Function Fit ( _
	Src As GeoPoint2D(), _
	Dst As GeoPoint2D(), _
	DoScale As Boolean _
) As ModOp2D
Visual C++
public:
static ModOp2D Fit(
	array<GeoPoint2D>^ Src, 
	array<GeoPoint2D>^ Dst, 
	bool DoScale
)

Parameters

Src
Type: array<CADability..::..GeoPoint2D>[]()[][]
source points
Dst
Type: array<CADability..::..GeoPoint2D>[]()[][]
destination points
DoScale
Type: System..::..Boolean
scaling if two point pairs are given

Return Value

resulting transformation

See Also