Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Measures.h File Reference

#include <cmath>

Include dependency graph for Measures.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AngPi
 Circular arithmetic on angles between 0 and pi (180 degrees). More...
class  AngTwoPi
 Circular arithmetic on angles between 0 and two pi (360 degrees). More...
class  AngSignPi
 Circular arithmetic on angles between -pi and pi (360 degrees). More...

Typedefs

typedef float coordinate_t
 type used for positional coordinates
typedef float orientation_t
 type used for orientation values (0 to Pi)
typedef float direction_t
 type used for direction values (0 to 2*Pi)
typedef coordinate_t Slope
 type used for ratio of coordinate offsets

Functions

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

Variables

const direction_t Pi = M_PI
 shorthand for M_PI from math.h
const direction_t TwoPi = 2*M_PI
 shorthand for 2*M_PI
const Slope BIG_SLOPE = 5000.0
 slopes larger than this are considered vertical, or in other words, infinite slopes are rounded to this


Typedef Documentation

typedef float coordinate_t

type used for positional coordinates

Definition at line 6 of file Measures.h.

typedef float direction_t

type used for direction values (0 to 2*Pi)

Definition at line 8 of file Measures.h.

typedef float orientation_t

type used for orientation values (0 to Pi)

Definition at line 7 of file Measures.h.

type used for ratio of coordinate offsets

Definition at line 13 of file Measures.h.


Function Documentation

AngPi angdist ( AngSignPi const &  arg1,
AngSignPi const &  arg2 
)

Angular distance: value is between 0 and pi.

Definition at line 63 of file Measures.cc.

AngPi angdist ( AngTwoPi const &  arg1,
AngTwoPi const &  arg2 
)

Angular distance: value is between 0 and pi.

Definition at line 41 of file Measures.cc.

AngPi angdist ( AngPi const &  arg1,
AngPi const &  arg2 
)

Angular distance: value is between 0 and pi/2.

Definition at line 19 of file Measures.cc.


Variable Documentation

const Slope BIG_SLOPE = 5000.0

slopes larger than this are considered vertical, or in other words, infinite slopes are rounded to this

Definition at line 14 of file Measures.h.

const direction_t Pi = M_PI

shorthand for M_PI from math.h

Definition at line 10 of file Measures.h.

Referenced by angdist(), AngSignPi::normalize(), and AngPi::normalize().

const direction_t TwoPi = 2*M_PI

shorthand for 2*M_PI

Definition at line 11 of file Measures.h.

Referenced by angdist(), AngSignPi::normalize(), and AngTwoPi::normalize().


Tekkotsu v4.0
Generated Thu Nov 22 00:56:16 2007 by Doxygen 1.5.4