MKI_POINT (Basic Classes) Changed in Version 2021.0 |
www.CAD6.com |
C++ Syntaxstruct MKI_POINT_BASE { double x, y; };
class MKI_POINT : public MKI_POINT_BASE { public:
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 );
const MKI_POINT& f_rPoint, const MKI_VECTOR_BASE& 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_BASE& f_rVector );
void Add( const double f_dX, const double f_dY );
void Add( const MKI_VECTOR_BASE& f_rVector );
void Add( const double f_dFactor, const MKI_VECTOR_BASE& f_rVector );
void const MKI_POINT& f_rPoint, const MKI_VECTOR_BASE& f_rVector );
void const MKI_POINT& f_rPoint, const double f_dFactor, const MKI_VECTOR_BASE& f_rVector );
void Sub( const double f_dX, const double f_dY );
void Sub( const MKI_VECTOR_BASE& f_rVector );
void Sub( const double f_dFactor, const MKI_VECTOR_BASE& f_rVector );
void const MKI_POINT& f_rPoint, const MKI_VECTOR_BASE& f_rVector );
void const MKI_POINT& f_rPoint, const double f_dFactor, const MKI_VECTOR_BASE& f_rVector );
void const MKI_POINT& f_rPoint1, const MKI_POINT& f_rPoint2 );
void SetCenter( const MKI_RECT_BASE& f_rRect );
void const MKI_POINT& f_rPoint1, const MKI_POINT& f_rPoint2, const double f_dCurve );
void Multiply( const MKI_MATRIX_BASE& f_rMatrix );
void const MKI_MATRIX_BASE& f_rMatrix, const MKI_POINT& f_rPoint );
void const MKI_MATRIX_BASE& f_rMatrix, const double f_dX, const double f_dY );
bool const MKI_POINT& f_rPoint, const double f_dDistance ) const;
bool 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 }
This class contains the description of a single 2D point and some associated methods.
Element Descriptionx, y [double] X- and Y-Coordinate of the point. The coordinates are in [mm] relative to the page center.
MKD Syntaxx,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 2024.2 - Copyright 2024 Malz++Kassner® GmbH