Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AngSignTwoPi Class Reference

Turn with an explicit direction: angles between -2*pi and 2*pi (+/- 360 degrees). More...

#include <Measures.h>


Detailed Description

Turn with an explicit direction: angles between -2*pi and 2*pi (+/- 360 degrees).

Definition at line 132 of file Measures.h.

List of all members.

Public Member Functions

 AngSignTwoPi (void)
 AngSignTwoPi (direction_t const &v)
 constructor, value defaults to 0
AngSignTwoPi operator+ (AngSignTwoPi const &arg) const
AngSignTwoPi operator- (AngSignTwoPi const &arg) const
AngSignTwoPi operator* (direction_t const &arg) const
AngSignTwoPi operator/ (direction_t const &arg) const
AngSignTwoPioperator= (AngSignTwoPi const &arg)
AngSignTwoPioperator= (direction_t const &arg)
AngSignTwoPioperator+= (direction_t const &arg)
AngSignTwoPioperator-= (direction_t const &arg)
AngSignTwoPioperator*= (direction_t const &arg)
AngSignTwoPioperator/= (direction_t const &arg)
 operator direction_t () const

Protected Member Functions

void normalize ()
 conversion operator for going back to the primitive type

Protected Attributes

direction_t value
 holds the angle, should be kept normalized at all times

Constructor & Destructor Documentation

AngSignTwoPi::AngSignTwoPi ( void   ) 

Definition at line 134 of file Measures.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

AngSignTwoPi::AngSignTwoPi ( direction_t const &  v  ) 

constructor, value defaults to 0

conversion operator allows implicit construction from primitive

Definition at line 135 of file Measures.h.


Member Function Documentation

void AngSignTwoPi::normalize (  )  [protected]

conversion operator for going back to the primitive type

modifies value to put it back in range

Definition at line 100 of file Measures.cc.

Referenced by AngSignTwoPi(), operator*=(), operator+=(), operator-=(), operator/=(), and operator=().

AngSignTwoPi::operator direction_t (  )  const

Definition at line 149 of file Measures.h.

AngSignTwoPi AngSignTwoPi::operator* ( direction_t const &  arg  )  const

Definition at line 139 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator*= ( direction_t const &  arg  ) 

Definition at line 146 of file Measures.h.

AngSignTwoPi AngSignTwoPi::operator+ ( AngSignTwoPi const &  arg  )  const

Definition at line 137 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator+= ( direction_t const &  arg  ) 

Definition at line 144 of file Measures.h.

AngSignTwoPi AngSignTwoPi::operator- ( AngSignTwoPi const &  arg  )  const

Definition at line 138 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator-= ( direction_t const &  arg  ) 

Definition at line 145 of file Measures.h.

AngSignTwoPi AngSignTwoPi::operator/ ( direction_t const &  arg  )  const

Definition at line 140 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator/= ( direction_t const &  arg  ) 

Definition at line 147 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator= ( direction_t const &  arg  ) 

Definition at line 143 of file Measures.h.

AngSignTwoPi& AngSignTwoPi::operator= ( AngSignTwoPi const &  arg  ) 

Definition at line 142 of file Measures.h.


Member Data Documentation

holds the angle, should be kept normalized at all times

Definition at line 153 of file Measures.h.

Referenced by normalize(), operator direction_t(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and operator=().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:04 2016 by Doxygen 1.6.3