Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
AngleC::AngleC(RealT,RealT)
AngleC::Restrict(RealT)
AngleC::Normalise(void)
AngleC::operator-(const AngleC &) const
AngleC::operator+(const AngleC &) const
AngleC::operator-=(const AngleC &)
AngleC::operator+=(const AngleC &)
AngleC::Diff(const AngleC &) const
AngleC::MaxAngle(void) const
AngleC::Value(void) const
AngleC::Sin(void) const
AngleC::Cos(void) const
AngleC::Dump(ostream &)
AngleC
 
This class is designed to deal with angles in radians. it keeps the values normalised.
 
include "amma/Angle.hh"
User Level:Default
Library:Mmath
Example:exComplx.cc
Section:Basic Types.Numerical Geometry.Types
In Scope:std

Comments:
A SMALL OBJECT

Variables:
RealT angle;

RealT max;

Methods:
AngleC(RealT anglerad = 0,RealT maxval = StdConstC::pi*2)
Construct from value in radians.
maxval is angle to wrap around at. for directed lines this should be 2*pi. for undirected lines is should be pi.

void Restrict(RealT newMax)
Restrict angle to values between 0 and newMax.

void Normalise()
Normalise the angle.

AngleC operator-(const AngleC & val) const
Subtract angles.

AngleC operator+(const AngleC & val) const
Add angles.

const AngleC & operator-=(const AngleC & val)
Subtract angles.

const AngleC & operator+=(const AngleC & val)
Add angles.

RealT Diff(const AngleC & val) const
Find the difference between two angles.
it returns values in the rangle +/- max/2.

RealT MaxAngle() const

RealT Value() const
Get value of angle.

RealT Sin() const
Get sin of angle.

RealT Cos() const
Get cos of angle.

void Dump(ostream & out)
Dump to stream.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001