MKI_LINE (Basic Classes) Changed in Version 2025.0

www.CAD6.com

C++ Syntax

class MKI_LINE

{

  public:

 

  MKI_POINT p1,

            p2;

 

  MKI_LINE( void );

 

  MKI_LINE( const MKI_LINE* f_pThis );

 

  MKI_LINE(

 const double f_dX1, const double f_dY1,

 const double f_dX2, const double f_dY2 );

 

  MKI_LINE(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2 );

 

  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 );

 

  void

  Set(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2 );

 

  void

  Set(

 const MKI_POINT& f_rPoint,

 const MKI_VECTOR& f_rVector );

 

  bool

  ClipLine(

 const MKI_INTRECT& f_rRect ); New in Version 2025.0

 

  bool

  ClipLine(

 const MKI_RECT& f_rRect ); New in Version 2025.0

 

  bool

  ClipBeam(

 const MKI_INTRECT& f_rRect ); New in Version 2025.0

 

  bool

  ClipBeam(

 const MKI_RECT& f_rRect ); New in Version 2025.0

 

  bool

  ClipEndless(

 const MKI_INTRECT& f_rRect ); New in Version 2025.0

 

  bool

  ClipEndless(

 const MKI_RECT& f_rRect ); New in Version 2025.0

};

 

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

 

Element Description

p1

[MKI_POINT] Start-point of the line segment.

p2

[MKI_POINT] End-point of the line segment.

 

MKD Syntax

p1.x,p1.y,p2.x,p2.y

 

The data type MKI_LINE is used to store a line segment, a beam, or an endless line.

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH