MKI_VECTOR (Basic Classes) Changed in Version 2022.1 |
www.CAD6.com |
C++ Syntaxstruct MKI_VECTOR_BASE { double vx, vy; };
class MKI_VECTOR : public MKI_VECTOR_BASE { public:
MKI_VECTOR( void );
MKI_VECTOR( const MKI_VECTOR* f_pThis );
MKI_VECTOR( const double f_dX, const double f_dY );
const MKI_POINT_BASE& f_rPoint1, const MKI_POINT_BASE& f_rPoint2 );
bool operator ==( const MKI_VECTOR& f_rVector ) const;
bool operator !=( const MKI_VECTOR& f_rVector ) 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_POINT_BASE& f_rPoint );
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 const MKI_VECTOR& f_rVector1, const MKI_VECTOR& f_rVector2 );
void const MKI_VECTOR& f_rVector1, const double f_dFactor, const MKI_VECTOR& f_rVector2 );
void Sub( const double f_dX, const double f_dY );
void Sub( const MKI_VECTOR& f_rVector );
void const MKI_VECTOR& f_rVector1, const MKI_VECTOR& f_rVector2 );
void const MKI_POINT_BASE& f_rPoint1, const MKI_POINT_BASE& f_rPoint2 );
void Divide( const double f_dFactor );
void Multiply( const double f_dFactor );
void Multiply( const MKI_MATRIX_BASE& f_rMatrix );
void const double f_dFactor, const MKI_VECTOR& f_rVector );
void const MKI_MATRIX_BASE& f_rMatrix, const MKI_VECTOR& f_rVector );
void Rotate( const double f_dAngle );
void const double f_dAngle, const MKI_VECTOR& f_rVector );
double Scalar( const MKI_VECTOR& f_rVector ) const;
double Determinant( const MKI_VECTOR& f_rVector ) const;
double Square( void ) const;
double Length( void ) const;
double Normalize( void );
double Normalize( double f_dLength );
double Angle( void ) const;
double AngleTo( const MKI_VECTOR& f_rVector ) const; New in Version 2022.1 };
This class contains the description of a single 2D vector and some associated methods.
Element Descriptionvx, vy [double] X- and Y-component of the vector. The element are in [mm].
MKD Syntaxvx,vy
The data type MKI_VECTOR is used to store the components of a vector. Each MKI_VECTOR consists of a X- and a Y-component.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH