Browse Source

vector2d.h: fix for the fix of the awrning fix.

newinvert
jean-pierre charras 2 years ago
parent
commit
52bf337b55
  1. 4
      libs/kimath/include/math/vector2d.h

4
libs/kimath/include/math/vector2d.h

@ -363,7 +363,7 @@ VECTOR2<T> VECTOR2<T>::Resize( T aNewLength ) const
static_cast<T>(
( y < 0 ? -1 : 1 ) *
KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) )
* sign( aNewLength ) ) );
) ) * sign( aNewLength );
}
else
{
@ -373,7 +373,7 @@ VECTOR2<T> VECTOR2<T>::Resize( T aNewLength ) const
static_cast<T>(
( y < 0 ? -1 : 1 ) *
std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) )
* sign( aNewLength ) ));
)) * sign( aNewLength );
}
}

Loading…
Cancel
Save