Erik Hofman writes:
> 
> I've committed a patch that simply checks whether 'dot' is greater than 
> 1.0 and then prints an error message and set 'dot' to 1.0

Should do the less then case too :-) 

     if (dot > 1) {
         SG_LOG( SG_ASTRO, SG_WARN,
                 "Dot product  = " << dot << " is greater than 1.0" );
         dot = 1.0;
     }
 
     else if (dot < -1.0) {
         SG_LOG( SG_ASTRO, SG_WARN,
                 "Dot product  = " << dot << " is less than -1.0" );
         dot = -1.0;
     }
  
HTH

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to