commit 97c2f9bd3936b0e72025eff79a4e1b3c261f50c6 parent 2b3702573d138f8bd28633646f700b869096db2c Author: Michael Savage <mikejsavage@gmail.com> Date: Fri Nov 18 19:38:35 +0200 Warnings Diffstat:
linear_algebra.h | | | 4 | ++-- |
diff --git a/linear_algebra.h b/linear_algebra.h @@ -717,12 +717,12 @@ forceinline m4 operator-( const m4 & m ) { template< typename T > forceinline T radians( const T & x ) { - return x * M_PI / 180.0; + return x * float( M_PI ) / 180.0; } template< typename T > forceinline T degrees( const T & x ) { - return x * 180.0 / M_PI; + return x * 180.0 / float( M_PI ); } forceinline u32 mean( u32 a, u32 b ) {