ETL  0.04.19
Public Member Functions | List of all members
angle::cos Class Reference

Angle representation as a cosine function. More...

#include <ETL/angle>

Inheritance diagram for angle::cos:
angle

Public Member Functions

 cos (const value_type &x)
 cos (const angle &a)
cos mod () const
 Rotation Modulus.
cos dist (const angle &rhs) const
 Angle Difference Function.
value_type get () const
- Public Member Functions inherited from angle
const angleoperator+= (const angle &rhs)
 Stored in radians; positive values indicate counter-clockwise.
const angleoperator-= (const angle &rhs)
const angleoperator*= (const unit &rhs)
const angleoperator/= (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.
bool operator! () const

Additional Inherited Members

- Public Types inherited from angle
typedef float value_type
- Static Public Member Functions inherited from angle
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 inherited from angle
typedef value_type unit
- Protected Attributes inherited from angle
unit v

Detailed Description

Angle representation as a cosine function.

See Also
angle
Todo:
This needs to be documented

Definition at line 441 of file _angle.h.

Constructor & Destructor Documentation

angle::cos::cos ( const value_type x)
inlineexplicit

Definition at line 444 of file _angle.h.

References angle::v.

Referenced by get().

angle::cos::cos ( const angle a)
inline

Definition at line 445 of file _angle.h.

Member Function Documentation

cos angle::cos::mod ( ) const
inline

Rotation Modulus.

This function will return the value of the angle

Reimplemented from angle.

Definition at line 446 of file _angle.h.

cos angle::cos::dist ( const angle rhs) const
inline

Angle Difference Function.

This function will return the difference between two angles, just like

See Also
angle operator-(const angle &)

Reimplemented from angle.

Definition at line 447 of file _angle.h.

value_type angle::cos::get ( ) const
inline

Definition at line 448 of file _angle.h.

References cos(), and angle::v.


The documentation for this class was generated from the following file: