MKI_INTVECTOR (Basic Classes) Changed in Version 2019.1

www.CAD6.com

This class contains the description of a 2D vector with integer coordinates.

 

C++ Syntax

class MKI_INTVECTOR : public SIZE

{

  public:

 

  MKI_INTVECTOR( void );

 

  MKI_INTVECTOR(

 const __int32 f_nX,

 const __int32 f_nY );

 

  operator POINT*();

 

  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

  SetAdd(

 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

  SetSub(

 const SIZE& f_rVector1,

 const SIZE& f_rVector2 );

 

  void

  SetSub(

 const POINT& f_rPoint1,

 const POINT& f_rPoint2 );

};

 

Element Description

cx

cy

[double] X- and Y-component of the vector. The element are in [mm].

 

MKD Syntax

cx,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 2026.1 - Copyright 2026 Malz++Kassner® GmbH