MKI_POINT (Basic Classes) Changed in Version 2026.1

www.CAD6.com

This class contains the description of a 2D point.

 

C++ Syntax

class MKI_POINT

{

  public:

 

  double x,

         y;

 

  MKI_POINT( void );

 

  MKI_POINT(

 const MKI_POINT* f_pThis );

 

  MKI_POINT(

 const MKI_INTPOINT& f_rPoint );

 

  MKI_POINT(

 const double f_dX,

 const double f_dY );

 

  MKI_POINT(

 const MKI_POINT& f_rPoint,

 const MKI_VECTOR& f_rVector );

 

  bool

  operator ==(

 const MKI_POINT& f_rPoint ) const;

 

  bool

  operator !=(

 const MKI_POINT& f_rPoint ) 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 double f_dX,

 const double f_dY );

 

  void

  Set(

 const MKI_VECTOR& f_rVector );

 

  void

  Add(

 const double f_dX,

 const double f_dY );

 

  void

  Add(

 const MKI_VECTOR& f_rVector );

 

  void

  Add(

 const double f_dFactor,

 const MKI_VECTOR& f_rVector );

 

  void

  SetAdd(

 const MKI_POINT& f_rPoint,

 const MKI_VECTOR& f_rVector );

 

  void

  SetAdd(

 const MKI_POINT& f_rPoint,

 const double f_dFactor,

 const MKI_VECTOR& f_rVector );

 

  void

  Sub(

 const double f_dX, const double f_dY );

 

  void

  Sub(

 const MKI_VECTOR& f_rVector );

 

  void

  Sub(

 const double f_dFactor,

 const MKI_VECTOR& f_rVector );

 

  void

  SetSub(

 const MKI_POINT& f_rPoint,

 const MKI_VECTOR& f_rVector );

 

  void

  SetSub(

 const MKI_POINT& f_rPoint,

 const double f_dFactor,

 const MKI_VECTOR& f_rVector );

 

  void

  SetCenter(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2 );

 

  void

  SetCenter(

 const MKI_RECT& f_rRect );

 

  void

  SetArcCenter(

 const MKI_POINT& f_rPoint1,

 const MKI_POINT& f_rPoint2,

 const double f_dCurve );

 

  void

  Multiply(

 const MKI_MATRIX& f_rMatrix );

 

  void

  SetMultiply(

 const MKI_MATRIX& f_rMatrix,

 const MKI_POINT& f_rPoint );

 

  void

  SetMultiply(

 const MKI_MATRIX& f_rMatrix,

 const double f_dX,

 const double f_dY );

 

  void

  SetOffset(

 const MKI_MATRIX& f_rMatrix,

 const MKI_POINT& f_rPoint ); New in Version 2026.1

 

  void

  SetOffset(

 const MKI_MATRIX& f_rMatrix,

 const double f_dX,

 const double f_dY ); New in Version 2026.1

 

  bool

  IsNear(

 const MKI_POINT& f_rPoint,

 const double f_dDistance ) const;

 

  bool

  IsNotNear(

 const MKI_POINT& f_rPoint,

 const double f_dDistance ) const;

 

  double

  SquareTo(

 const MKI_POINT& f_rPoint ) const;

 

  double

  SquareTo(

 const double f_dX,

 const double f_dY ) const;

 

  double

  LengthTo(

 const MKI_POINT& f_rPoint ) const;

 

  double

  LengthTo(

 const double f_dX,

 const double f_dY ) const;

 

  double

  AngleTo(

 const MKI_POINT& f_rPoint ) const;;

 

  double&

  Curve( void );

 

  double

  Curve( void ) const;

 

  double&

  Orient( void );

 

  double

  Orient( void ) const;

 

  bool

  IsOrientPositive( void ) const; New in Version 2021.0

 

  bool

  IsOrientNegative( void ) const; New in Version 2021.0

}

 

Element Description

x

y

[double] X- and Y-Coordinate of the point. The coordinates are in [mm] relative to the page center.

 

MKD Syntax

x,y

 

The data type MKI_POINT is used to store the coordinates of a point. Each MKI_POINT consists of a X- and a Y-coordinate.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH