Abstraction of the concept of an angle.  
 More...
#include <ETL/angle>
| 
Classes | 
| class | cos | 
|  | Angle representation as a cosine function.  More... 
 | 
| class | deg | 
|  | Angle representation in degrees.  More... 
 | 
| class | rad | 
|  | Angle representation in radians.  More... 
 | 
| class | rot | 
|  | Angle representation in rotations.  More... 
 | 
| class | sin | 
|  | Angle representation as a sine function.  More... 
 | 
| class | tan | 
|  | Angle representation as a tangent function.  More... 
 | 
| 
Static Public Member Functions | 
| static angle | zero () | 
|  | Zero Rotation (0 degrees) 
 | 
| static angle | one () | 
|  | One Complete Rotation (360 degrees) 
 | 
| static angle | half () | 
|  | One Half Rotation (180 degrees) 
 | 
| 
Protected Attributes | 
| unit | v | 
Detailed Description
Abstraction of the concept of an angle. 
- See Also
- angle::deg, angle::rad, angle::rot, angle::sin, angle::cos, angle::tan, fastangle 
- Todo:
- This needs to be documented 
Definition at line 58 of file _angle.h.
Member Typedef Documentation
Member Function Documentation
  
  | 
        
          | const angle& angle::operator+= | ( | const angle & | rhs | ) |  |  | inline | 
 
Stored in radians; positive values indicate counter-clockwise. 
Definition at line 75 of file _angle.h.
References v.
 
 
  
  | 
        
          | const angle& angle::operator-= | ( | const angle & | rhs | ) |  |  | inline | 
 
 
  
  | 
        
          | const angle& angle::operator*= | ( | const unit & | rhs | ) |  |  | inline | 
 
 
  
  | 
        
          | const angle& angle::operator/= | ( | const unit & | rhs | ) |  |  | inline | 
 
 
Angle Addition Operator. 
Definition at line 92 of file _angle.h.
 
 
Angle Subtraction Operator. 
- See Also
- angle dist(const angle &) 
Definition at line 98 of file _angle.h.
 
 
  
  | 
        
          | angle angle::operator* | ( | const unit & | rhs | ) | const |  | inline | 
 
Angle Scalar Multiplication Operator. 
This operator will multiply the given angle by the given scalar value. 
Definition at line 105 of file _angle.h.
 
 
  
  | 
        
          | angle angle::operator/ | ( | const unit & | rhs | ) | const |  | inline | 
 
 
  
  | 
        
          | angle angle::operator- | ( |  | ) | const |  | inline | 
 
Angle Negation. 
Definition at line 114 of file _angle.h.
References v.
 
 
  
  | 
        
          | bool angle::operator< | ( | const angle & | rhs | ) | const |  | inline | 
 
Returns true if the left-hand side is less than the right-hand side 
Definition at line 186 of file _angle.h.
References v.
 
 
  
  | 
        
          | bool angle::operator> | ( | const angle & | rhs | ) | const |  | inline | 
 
Returns true if the left-hand side is greater than the right-hand side 
Definition at line 193 of file _angle.h.
References v.
 
 
  
  | 
        
          | bool angle::operator<= | ( | const angle & | rhs | ) | const |  | inline | 
 
Returns true if the left-hand side is less or equal to the right-hand side 
Definition at line 200 of file _angle.h.
References v.
 
 
  
  | 
        
          | bool angle::operator>= | ( | const angle & | rhs | ) | const |  | inline | 
 
Returns true if the left-hand side is greater than or equal to the right-hand side 
Definition at line 207 of file _angle.h.
References v.
 
 
  
  | 
        
          | bool angle::operator== | ( | const angle & | rhs | ) | const |  | inline | 
 
 
  
  | 
        
          | angle angle::abs | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | angle angle::mod | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | static angle angle::zero | ( |  | ) |  |  | inlinestatic | 
 
Zero Rotation (0 degrees) 
Definition at line 282 of file _angle.h.
References v.
 
 
  
  | 
        
          | static angle angle::one | ( |  | ) |  |  | inlinestatic | 
 
One Complete Rotation (360 degrees) 
Definition at line 291 of file _angle.h.
References v.
 
 
  
  | 
        
          | static angle angle::half | ( |  | ) |  |  | inlinestatic | 
 
One Half Rotation (180 degrees) 
Definition at line 300 of file _angle.h.
References PI, and v.
 
 
  
  | 
        
          | bool angle::operator! | ( |  | ) | const |  | inline | 
 
 
Friends And Related Function Documentation
Member Data Documentation
Definition at line 66 of file _angle.h.
Referenced by abs(), angle::cos::cos(), angle::deg::deg(), angle::rad::get(), angle::deg::get(), angle::rot::get(), angle::sin::get(), angle::cos::get(), angle::tan::get(), half(), one(), operator!(), operator!=(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), angle::rad::rad(), angle::rot::rot(), angle::sin::sin(), angle::tan::tan(), and zero().
 
 
The documentation for this class was generated from the following file: