#include <ETL/angle>
Public Types | |
typedef float | value_type |
Public Member Functions | |
const angle & | operator+= (const angle &rhs) |
Stored in radians; positive values indicate counter-clockwise. | |
const angle & | operator-= (const angle &rhs) |
const angle & | operator*= (const unit &rhs) |
const angle & | operator/= (const unit &rhs) |
angle | operator+ (const angle &rhs) const |
Angle Addition Operator. | |
angle | operator- (const angle &rhs) const |
Angle Subtraction Operator. | |
angle | operator* (const unit &rhs) const |
Angle Scalar Multiplication Operator. | |
angle | operator/ (const unit &rhs) const |
angle | operator- () const |
Angle Negation. | |
bool | operator< (const angle &rhs) const |
bool | operator> (const angle &rhs) const |
bool | operator<= (const angle &rhs) const |
bool | operator>= (const angle &rhs) const |
bool | operator== (const angle &rhs) const |
bool | operator!= (const angle &rhs) const |
angle | abs () const |
Absolute Angle Function. | |
angle | dist (const angle &rhs) const |
Angle Difference Function. | |
angle | mod () const |
Rotation Modulus. | |
bool | operator! () const |
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 Types | |
typedef value_type | unit |
Protected Attributes | |
unit | v |
Friends | |
class | rad |
class | deg |
class | rot |
class | sin |
class | cos |
class | tan |
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... |
Definition at line 58 of file _angle.h.
typedef float angle::value_type |
typedef value_type angle::unit [protected] |
angle angle::operator- | ( | ) | const [inline] |
bool angle::operator< | ( | const angle & | rhs | ) | const [inline] |
bool angle::operator> | ( | const angle & | rhs | ) | const [inline] |
bool angle::operator<= | ( | const angle & | rhs | ) | const [inline] |
bool angle::operator>= | ( | const angle & | rhs | ) | const [inline] |
bool angle::operator== | ( | const angle & | rhs | ) | const [inline] |
Returns true if the angles are the same, or close
Definition at line 213 of file _angle.h.
References abs(), ANGLE_EPSILON, and v.
bool angle::operator!= | ( | const angle & | rhs | ) | const [inline] |
Returns false if the angles are different
Definition at line 219 of file _angle.h.
References abs(), ANGLE_EPSILON, and v.
angle angle::abs | ( | ) | const [inline] |
Angle Difference Function.
This function will return the difference between two angles, just like
Reimplemented in angle::rad, angle::deg, angle::rot, angle::sin, angle::cos, and angle::tan.
Definition at line 266 of file _angle.h.
Referenced by angle::tan::dist(), angle::cos::dist(), angle::sin::dist(), angle::rot::dist(), angle::deg::dist(), and angle::rad::dist().
angle angle::mod | ( | ) | const [inline] |
Rotation Modulus.
This function will return the value of the angle
Reimplemented in angle::rad, angle::deg, angle::rot, angle::sin, angle::cos, and angle::tan.
Definition at line 273 of file _angle.h.
Referenced by angle::tan::mod(), angle::cos::mod(), angle::sin::mod(), angle::rot::mod(), angle::deg::mod(), angle::rad::mod(), and operator!().
static angle angle::zero | ( | ) | [inline, static] |
static angle angle::one | ( | ) | [inline, static] |
static angle angle::half | ( | ) | [inline, static] |
bool angle::operator! | ( | ) | const [inline] |
Definition at line 66 of file _angle.h.
Referenced by abs(), angle::cos::cos(), angle::deg::deg(), angle::tan::get(), angle::cos::get(), angle::sin::get(), angle::rot::get(), angle::deg::get(), angle::rad::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().