diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 191e1e2..0517f87 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -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, diff --git a/EgtInterface.rc b/EgtInterface.rc index 5f434c6..883459d 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ