Changeset 487 for trunk/nv/stl/math/angle.hh
- Timestamp:
- 03/08/16 08:05:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/math/angle.hh
r471 r487 139 139 140 140 template < typename T, typename enable_if< is_floating_point<T>::value >::type* = nullptr > 141 inline T angle( T a, T y)141 inline T angle( T a, T b ) 142 142 { 143 143 return acos( clamp( dot( a, b ), T( -1 ), T( 1 ) ) ); … … 156 156 const T result( acos( clamp( dot( a, b ), T( -1 ), T( 1 ) ) ) ); 157 157 158 if ( all( epsilon_equal( y, math::rotate( a, result ), T( 0.0001 ) ) ) )158 if ( all( epsilon_equal( b, math::rotate( a, result ), T( 0.0001 ) ) ) ) 159 159 return result; 160 160 else
Note: See TracChangeset
for help on using the changeset viewer.