EgtGraphics 1.9l4 :

- fabs sostituito da abs
- aggiunto disegno asse Z+ in riferimento griglia.
This commit is contained in:
Dario Sassi
2018-12-27 11:20:33 +00:00
parent 6347e9d7d4
commit 49e4839934
7 changed files with 17 additions and 13 deletions
+2 -2
View File
@@ -437,8 +437,8 @@ Scene::CalcDimViewFromExtView( void)
// ricavo le dimensioni
const double COEFF = 1.05 ;
double dHalfWidth = COEFF * max( fabs( ptMin.x), fabs( ptMax.x)) ;
double dHalfHeight = COEFF * max( fabs( ptMin.y), fabs( ptMax.y)) ;
double dHalfWidth = COEFF * max( abs( ptMin.x), abs( ptMax.x)) ;
double dHalfHeight = COEFF * max( abs( ptMin.y), abs( ptMax.y)) ;
// adatto le dimensioni a quelle della vista
return AdjustDimView( dHalfWidth, dHalfHeight) ;