Go to the source code of this file.
 | 
 | 
| template<class T >  | 
| void  | rcSwap (T &a, T &b) | 
|   | Swaps the values of the two parameters.  More...
  | 
|   | 
| template<class T >  | 
| T  | rcMin (T a, T b) | 
|   | Returns the minimum of two values.  More...
  | 
|   | 
| template<class T >  | 
| T  | rcMax (T a, T b) | 
|   | Returns the maximum of two values.  More...
  | 
|   | 
| template<class T >  | 
| T  | rcAbs (T a) | 
|   | Returns the absolute value.  More...
  | 
|   | 
| template<class T >  | 
| T  | rcSqr (T a) | 
|   | Returns the square of the value.  More...
  | 
|   | 
| template<class T >  | 
| T  | rcClamp (T v, T mn, T mx) | 
|   | Clamps the value to the specified range.  More...
  | 
|   | 
| float  | rcSqrt (float x) | 
|   | Returns the square root of the value.  More...
  | 
|   | 
Returns the absolute value. 
- Parameters
 - 
  
  
 
- Returns
 - The absolute value of the specified value. 
 
 
 
template<class T > 
  
  
      
        
          | T rcClamp  | 
          ( | 
          T  | 
          v,  | 
         
        
           | 
           | 
          T  | 
          mn,  | 
         
        
           | 
           | 
          T  | 
          mx  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Clamps the value to the specified range. 
- Parameters
 - 
  
    | [in] | v | The value to clamp.  | 
    | [in] | mn | The minimum permitted return value.  | 
    | [in] | mx | The maximum permitted return value.  | 
  
   
- Returns
 - The value, clamped to the specified range. 
 
 
 
Returns the maximum of two values. 
- Parameters
 - 
  
    | [in] | a | Value A  | 
    | [in] | b | Value B  | 
  
   
- Returns
 - The maximum of the two values. 
 
 
 
Returns the minimum of two values. 
- Parameters
 - 
  
    | [in] | a | Value A  | 
    | [in] | b | Value B  | 
  
   
- Returns
 - The minimum of the two values. 
 
 
 
Returns the square of the value. 
- Parameters
 - 
  
  
 
- Returns
 - The square of the value. 
 
 
 
Returns the square root of the value. 
- Parameters
 - 
  
  
 
- Returns
 - The square root of the vlaue. 
 
 
 
template<class T > 
  
  
      
        
          | void rcSwap  | 
          ( | 
          T &  | 
          a,  | 
         
        
           | 
           | 
          T &  | 
          b  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Swaps the values of the two parameters. 
- Parameters
 - 
  
    | [in,out] | a | Value A  | 
    | [in,out] | b | Value B  |