MKI_QUAD (Basic Classes) Changed in Version 2019.1

www.CAD6.com

C++ Syntax

class MKI_QUAD

{

  public:

 

  MKI_POINT p1,

            p2,

            p3,

            p4;

 

  MKI_QUAD( void );

 

  MKI_QUAD( const MKI_QUAD* f_pThis )

 

  MKI_QUAD(

 const double f_dX1, const double f_dY1,

 const double f_dX2, const double f_dY2,

 const double f_dX3, const double f_dY3,

 const double f_dX4, const double f_dY4 )

 

  MKI_QUAD(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2,

 const MKI_POINT& f_rPoint3,

 const MKI_POINT& f_rPoint4 )

 

  MKI_QUAD(

 const double f_dX1, const double f_dY1,

 const double f_dX2, const double f_dY2 )

 

  MKI_QUAD( const MKI_RECT& f_rRect )

 

  operator MKI_POINT*();

 

  void

  SetZero( void );

 

  bool

  IsZero( void ) const;

 

  bool

  IsNonZero( void ) const;

 

  void

  Set(

 const double f_dX1, const double f_dY1,

 const double f_dX2, const double f_dY2,

 const double f_dX3, const double f_dY3,

 const double f_dX4, const double f_dY4 );

 

  void

  Set(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2,

 const MKI_POINT& f_rPoint3,

 const MKI_POINT& f_rPoint4 );

 

  void

  Set(

 const double f_dX1, const double f_dY1,

 const double f_dX2, const double f_dY2 );

 

  void

  Set( const MKI_RECT& f_rRect )

 

  void

  Move( const MKI_VECTOR& f_rVector );

 

  void

  Multiply( const MKI_MATRIX& f_rMatrix );

 

  void

  SetMultiply(

 const MKI_MATRIX& f_rMatrix,

 const MKI_RECT& f_rRect );

 

  void

  SetMultiply(

 const MKI_MATRIX& f_rMatrix,

 const MKI_QUAD& f_rQuad );

};

 

This class contains the description of a quadrangle and some associated methods.

 

Element Description

p1

[MKI_POINT] First corner-point of the quadrangle.

p2

[MKI_POINT] Second corner-point of the quadrangle.

p3

[MKI_POINT] Third corner-point of the quadrangle.

p4

[MKI_POINT] Fourth corner-point of the quadrangle.

 

MKD Syntax

p1.x,p1.y,p2.x,p2.y,p3.x,p3.y,p4.x,p4.y

 

The data type MKI_QUAD is used to store a quadrangle.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH