MKI_3D_POINT (Basic Classes) New in Version 2026.1

www.CAD6.com

This class contains the description of a 3D point.

 

C++ Syntax

class MKI_3D_POINT

{

  public:

 

  double x,

         y,

         z;

 

  MKI_3D_POINT( void );

 

  MKI_3D_POINT(

 MKI_3D_POINT* f_pThis );

 

  MKI_3D_POINT(

 double f_dX,

 double f_dY,

 double f_dZ );

 

  MKI_3D_POINT(

 const MKI_3D_POINT& f_rPoint,

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  bool

  operator ==(

 const MKI_3D_POINT& f_rPoint ) const;

 

  bool

  operator !=(

 const MKI_3D_POINT& f_rPoint ) const;

 

  void

  SetZero( void );

 

  bool

  IsZero( void ) const;

 

  bool

  IsNonZero( void ) const;

 

  void

  SetInvalid( void );

 

  bool

  IsInvalid( void ) const;

 

  bool

  IsValid( void ) const;

 

  void

  Set(

 double f_dX,

 double f_dY,

 double f_dZ );

 

  void

  Set(

 MKI_CONST_POINT_REF f_rPoint )

 

  void

  Set(

 const MKI_3D_VECTOR_BASE& f_rVector )

 

  void

  Add(

 const double f_dX,

 const double f_dY,

 const double f_dZ );

 

  void

  Add(

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  Add(

 const MKI_3D_POINT& f_rPoint );

 

  void

  Add(

 const MKI_3D_VECTOR_BASE& f_rVector,

 const double f_dFactor );

 

  void

  Add(

 MKI_CONST_POINT_REF f_rVector );

 

  void

  SetAdd(

 const MKI_3D_POINT& f_rPoint,

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  SetAdd(

 const MKI_3D_POINT& f_rPoint,

 const double f_dFactor,

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  SetAdd(

 const MKI_3D_POINT& f_rPoint,

 MKI_CONST_POINT_REF f_rVector );

 

  void

  SetAdd(

 MKI_CONST_POINT_REF f_rPoint,

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  Sub(

 const double f_dX,

 const double f_dY,

 const double f_dZ );

 

  void

  Sub(

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  Sub(

 MKI_CONST_POINT_REF f_rVector );

 

  void

  SetSub(

 const MKI_3D_POINT& f_rPoint,

 const MKI_3D_VECTOR_BASE& f_rVector );

 

  void

  SetSub(

 const MKI_3D_POINT& f_rPoint,

 MKI_CONST_POINT_REF f_rVector )

 

  void

  SetCenter(

 const MKI_3D_POINT& f_rPoint1,

 const MKI_3D_POINT& f_rPoint2 )

 

  void

  SetCenter(

 const MKI_3D_CUBE_BASE& f_rCube );

 

  void

  Multiply(

 const MKI_3D_MATRIX& f_rMatrix );

 

  void

  Multiply(

 const MKI_3D_VIEW_MATRIX& f_rMatrix );

 

  void

  SetMultiply(

 const MKI_3D_MATRIX& f_rMatrix,

 const MKI_3D_POINT& f_rPoint );

 

  void

  SetMultiply(

 const MKI_3D_VIEW_MATRIX& f_rMatrix,

 const MKI_3D_POINT& f_rPoint );

 

  void

  SetMultiply(

 const MKI_3D_MATRIX& f_rMatrix,

 MKI_CONST_POINT_REF f_rPoint );

 

  bool

  IsNear(

 const MKI_3D_POINT& f_rPoint,

 const double f_dDistance ) const;

 

  bool

  IsNotEqualButNear(

 const MKI_3D_POINT& f_rPoint,

 const double f_dDistance ) const;

 

  double

  SquareTo(

 const MKI_3D_POINT& f_rPoint ) const;

 

  double

  SquareTo(

 const double f_dX,

 const double f_dY,

 const double f_dZ ) const;

 

  double

  LengthTo(

 const MKI_3D_POINT& f_rPoint ) const;

 

  double

  LengthTo(

 const double f_dX,

 const double f_dY,

 const double f_dZ ) const;

};

 

Element Description

x

y

z

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

 

MKD Syntax

Unused.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH