EgtInterface 2.3d5 :
- aggiunte interfacce per funzioni EgtGetCalcAngles e EgtGetCalcPositions.
This commit is contained in:
@@ -1913,6 +1913,28 @@ __stdcall EgtSetCalcTool( const wchar_t* wsTool, const wchar_t* wsHead, int nExi
|
||||
return ( ExeSetCalcTool( wstrztoA( wsTool), wstrztoA( wsHead), nExit) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3],
|
||||
int* pnStat, double* pdAngA1, double* pdAngB1, double* pdAngA2, double* pdAngB2)
|
||||
{
|
||||
if ( vtDirT == nullptr || vtDirA == nullptr ||
|
||||
pnStat == nullptr || pdAngA1 == nullptr || pdAngA2 == nullptr || pdAngB1 == nullptr || pdAngB2 == nullptr)
|
||||
return FALSE ;
|
||||
return ( ExeGetCalcAngles( vtDirT, vtDirA, *pnStat, *pdAngA1, *pdAngB1, *pdAngA2, *pdAngB2) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetCalcPositions( const double ptP[3], double dAngA, double dAngB,
|
||||
int* pnStat, double* pdX, double* pdY, double* pdZ)
|
||||
{
|
||||
if ( ptP == nullptr ||
|
||||
pnStat == nullptr || pdX == nullptr || pdY == nullptr || pdZ == nullptr)
|
||||
return FALSE ;
|
||||
return ( ExeGetCalcPositions( ptP, dAngA, dAngB, *pnStat, *pdX, *pdY, *pdZ) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB,
|
||||
|
||||
Reference in New Issue
Block a user