|
MKI_INTRECT (Basic Classes) Changed in Version 2022.0 |
www.CAD6.com |
|
This class contains the description of a 2D rectangle with integer coordinates.
C++ Syntaxclass MKI_INTRECT : public RECT { public:
MKI_INTRECT( void );
const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
MKI_INTRECT( const MKI_INTQUAD& f_rQuad );
MKI_INTRECT& const RECT& f_rRect );
bool operator ==( const RECT& f_rRect ) const;
bool operator !=( const RECT& f_rRect ) const;
void SetZero( void );
bool IsZero( void ) const;
bool IsNonZero( void ) const;
void SetInvalid( void );
bool IsValid( void ) const;
bool IsInvalid( void ) const;
void Set( const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
void Set( const POINT& f_rPoint1, const POINT& f_rPoint2 );
void Set( const POINT& f_rPoint );
void const RECT& f_rRect );
void const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
void const POINT& f_rPoint1, const POINT& f_rPoint2 );
void const RECT& f_rRect1, const RECT& f_rRect2 );
void const RECT& f_rRect1, const RECT& f_rRect2 );
bool const RECT& f_rRect ) const;
bool const RECT& f_rRect ) const;
void const RECT& f_rRect );
void const RECT& f_rRect );
void const POINT& f_rPoint );
void __int32 f_nX, __int32 f_nY );
bool const MKI_INTPOINT& f_rPoint ) const;
bool const MKI_POINT& f_rPoint ) const;
void const __int32 f_nAmount );
void const __int32 f_nAmountX, const __int32 f_nAmountY );
void Move( const SIZE& f_rVector );
__int32 GetMinX( void ) const;
__int32 GetMinY( void ) const;
__int32 GetMaxX( void ) const;
__int32 GetMaxY( void ) const;
__int32 GetAbsSizeX( void ) const;
__int32 GetAbsSizeY( void ) const;
void SIZE& f_rSize ) const;
void MKI_VECTOR& f_rSize ) const;
__int32 GetCenterX( void ) const;
__int32 GetCenterY( void ) const;
void POINT& f_rCenter ) const;
void MKI_POINT& f_rCenter ) const;
void SIZE& f_rCenter ) const;
void MKI_VECTOR& f_rCenter ) const;
__int32 GetArea( void ) const; };
Element Descriptionx1 y1 [double] X- and Y-Coordinate of the first corner-point of the rectangle. The coordinates are in units. x2 y2 [double] X- and Y-Coordinate of the second corner-point of the rectangle. The coordinates are in units.
CommentIn most cases, the values in this data type have to be sorted, i.e. x1 ≤ x2 and y1 ≤ y2. This speeds up further calculations with these rectangles.
MKD Syntaxx1,y1,x2,y2
The data type MKI_INTRECT is used to store the dimensions of a rectangular frame. Such frames are usually used to store the surrounding frames of something.
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH