User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Math - AngleC
 

  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.
 
include "Ravl/Angle.hh"
Created:09/02/1998 
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
It keeps the values normalised and provides arithmetic operations.

A SMALL OBJECT

Variables:
Methods:
AngleC(RealT anglerad = 0,RealT maxval = RavlConstN :: 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.


Maintainer:Charles Galambos, Created: 09/02/1998, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002