Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AngPi Class Reference

#include <Measures.h>

List of all members.


Detailed Description

Circular arithmetic on angles between 0 and pi (180 degrees).

Definition at line 17 of file Measures.h.

Public Member Functions

 AngPi (void)
 AngPi (orientation_t const &v)
 constructor, value defaults to 0 conversion operator allows implicit construction from primitive
AngPi operator+ (AngPi const &arg) const
AngPi operator- (AngPi const &arg) const
AngPi operator * (orientation_t const &arg) const
AngPi operator/ (orientation_t const &arg) const
AngPioperator= (AngPi const &arg)
AngPioperator= (orientation_t const &arg)
AngPioperator+= (orientation_t const &arg)
AngPioperator-= (orientation_t const &arg)
AngPioperator *= (orientation_t const &arg)
AngPioperator/= (orientation_t const &arg)
 operator orientation_t () const

Protected Member Functions

void normalize ()
 conversion operator for going back to the primitive type modifies value to put it back in range

Protected Attributes

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

Friends

AngPi angdist (AngPi const &arg1, AngPi const &arg2)
 Angular distance: value is between 0 and pi/2.


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

Tekkotsu v3.0
Generated Fri May 11 20:07:43 2007 by Doxygen 1.4.7