Ignore:
Timestamp:
03/08/16 08:05:51 (9 years ago)
Author:
epyon
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/math/angle.hh

    r471 r487  
    139139
    140140                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 )
    142142                {
    143143                        return acos( clamp( dot( a, b ), T( -1 ), T( 1 ) ) );
     
    156156                        const T result( acos( clamp( dot( a, b ), T( -1 ), T( 1 ) ) ) );
    157157
    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 ) ) ) )
    159159                                return result;
    160160                        else
Note: See TracChangeset for help on using the changeset viewer.