EgtMachKernel :

- fabs sostituito da abs.
This commit is contained in:
Dario Sassi
2018-12-27 11:22:54 +00:00
parent 2b322f5ea8
commit 73c7cc88e0
13 changed files with 41 additions and 41 deletions
+2 -2
View File
@@ -838,8 +838,8 @@ Machine::GetMyAngles( const Vector3d& vtDirT, const Vector3d& vtDirA,
dTemp = 1 - dCompHSuAxR1 * dCompHSuAxR1 ;
double dCompHOrtAxR1 = ( ( dTemp > EPS_ZERO) ? sqrt( dTemp) : 0) ;
// verifica ( controllo verso e max delta angolare < 0.002 deg)
if ( fabs( dCompTSuAxR1 - dCompHSuAxR1) < EPS_SMALL &&
fabs( dCompTOrtAxR1 * dCompHSuAxR1 - dCompHOrtAxR1 * dCompTSuAxR1) < 2 * SIN_EPS_ANG_SMALL) {
if ( abs( dCompTSuAxR1 - dCompHSuAxR1) < EPS_SMALL &&
abs( dCompTOrtAxR1 * dCompHSuAxR1 - dCompHOrtAxR1 * dCompTSuAxR1) < 2 * SIN_EPS_ANG_SMALL) {
nStat = 1 ;
vtDirH1 = vtDirHn ;
vtDirI1 = vtDirIn ;