- Timestamp:
- 03/08/16 08:08:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/stl/math/basic.hh
r486 r488 305 305 306 306 template < typename T, typename enable_if< is_floating_point<T>::value >::type* = nullptr > 307 constexprT smoothstep( T edge0, T edge1, T x )307 /*constexpr*/ T smoothstep( T edge0, T edge1, T x ) 308 308 { 309 309 T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) ); … … 312 312 313 313 template < typename T, typename enable_if< is_fp_vec<T>::value >::type* = nullptr > 314 constexprT smoothstep( const T& edge0, const T& edge1, const T& x )314 /*constexpr*/ T smoothstep( const T& edge0, const T& edge1, const T& x ) 315 315 { 316 316 T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) ); … … 319 319 320 320 template < typename T, typename enable_if< is_fp_vec<T>::value >::type* = nullptr > 321 constexprT smoothstep( value_type_t<T> edge0, value_type_t<T> edge1, const T& x )321 /*constexpr*/ T smoothstep( value_type_t<T> edge0, value_type_t<T> edge1, const T& x ) 322 322 { 323 323 T y( clamp( ( x - edge0 ) / ( edge1 - edge0 ), static_cast<T>( 0 ), static_cast<T>( 1 ) ) );
Note: See TracChangeset
for help on using the changeset viewer.