Using "long double" instead i"nt"

This commit is contained in:
abd 2006-08-01 11:07:32 +00:00
parent aebc245a9a
commit 67b319c0b2

View File

@ -746,7 +746,7 @@ double Warping::GetValue( const TSequenceOfXYZ& P )
if ( P.size() != 4 )
return 0;
gp_XYZ G = ( P( 1 ) + P( 2 ) + P( 3 ) + P( 4 ) ) / 4;
gp_XYZ G = ( P( 1 ) + P( 2 ) + P( 3 ) + P( 4 ) ) / 4.;
double A1 = ComputeA( P( 1 ), P( 2 ), P( 3 ), G );
double A2 = ComputeA( P( 2 ), P( 3 ), P( 4 ), G );
@ -777,7 +777,7 @@ double Warping::ComputeA( const gp_XYZ& thePnt1,
N.Normalize();
double H = ( thePnt2 - theG ).Dot( N );
return asin( fabs( H / L ) ) * 180 / PI;
return asin( fabs( H / L ) ) * 180. / PI;
}
double Warping::GetBadRate( double Value, int /*nbNodes*/ ) const