MKI_INTVECTOR (Basic Classes) Changed in Version 2019.1 |
www.CAD6.com |
C++ Syntaxclass MKI_INTVECTOR : public SIZE { public:
MKI_INTVECTOR( void );
MKI_INTVECTOR( const __int32 f_nX, const __int32 f_nY );
MKI_INTVECTOR& operator =( const POINT& f_rPoint );
MKI_INTVECTOR& operator =( const SIZE& f_rSize );
bool operator ==( const MKI_INTVECTOR& f_rVector ) const;
bool operator !=( const MKI_INTVECTOR& f_rVector ) 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_nX, const __int32 f_nY );
void Set( const POINT& f_rPoint );
void Add( const __int32 f_nX, const __int32 f_nY );
void Add( const SIZE& f_rVector );
void const SIZE& f_rVector1, const SIZE& f_rVector2 );
void Sub( const __int32 f_nX, const __int32 f_nY );
void Sub( const SIZE& f_rVector );
void const SIZE& f_rVector1, const SIZE& f_rVector2 );
void const POINT& f_rPoint1, const POINT& f_rPoint2 ); };
This class contains the description of a single 2D vector with integer coordinates and some associated methods.
Element Descriptioncx, cy [double] X- and Y-component of the vector. The element are in [mm]. MKD Syntaxcx,cy
The data type MKI_INTVECTOR is used to store the components of a vector. Each MKI_INTVECTOR consists of a X- and a Y-component.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH