SetFitAlign (class MKI_MATRIX) New in Version 2025.1

www.CAD6.com

C++ Syntax

bool

MKI_MATRIX::SetFitAlign(

 const MKI_RECT& f_rRect,

 double f_dX,

 double f_dY,

 __int32 f_nFitMode,

 double f_dFitSizeX,

 double f_dFitSizeY,

 __int32 f_nAlignMode );

 

Initializes the matrix with the scaling and movement required to fit one rectangle into another or to align it to a point.

 

Parameters

f_rRect

[const MKI_RECT&] Surrounding rectangle of the entities to be fitted and/or aligned.

f_dX

f_dY

[double] Alignment point in internal [mm] (relative to the internal origin, scale-independent).

f_nFitMode

[__int32] Fitting mode, see MKI_FITMODE_*.

f_dFitSizeX

f_dFitSizeY

[double] Absolute size of a rectangle in internal [mm] to fit into. It starts at f_dX and f_dY and extents to the right and upwards. If one or both values are zero or negative, no fitting will occur. Will be ignored if f_nFitMode is MKI_FITMODE_NONE.

f_nAlignMode New in Version 2025.0

[__int32] Alignment mode, see MKI_ALIGNMODE_*.

 

Return Value

Returns true if the initialization was successful.

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH