code::BoundedAngle Class Reference

Inheritance diagram for code::BoundedAngle:

code::Angle List of all members.

Detailed Description

Unlike Angle, BoundedAngle stores the internal value within the range specified in the constructor.

Author:
Lakshman
Version:
Id
code_BoundedAngle.h,v 1.8 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 BoundedAngle ()
 The default BoundedAngle corresponds to zero degrees.
 BoundedAngle (const Angle &, const Angle &=Angle())
 Build a BoundedAngle from an angle and the minimum bound.
double degrees () const
double radians () const
double value (const std::string &unit) const
Angle norm () const
Angleoperator *= (double d)
Angleoperator/= (double d)
Angleoperator+= (const Angle &a)
Angleoperator-= (const Angle &a)
Angle operator * (double d) const
Angle operator/ (double d) const
double operator/ (const Angle &a) const
Angle operator+ (const Angle &a) const
Angle operator- (const Angle &a) const
int compareTo (const Angle &a) const
bool operator< (const Angle &a) const
bool operator<= (const Angle &a) const
bool operator== (const Angle &a) const
bool operator!= (const Angle &a) const
bool operator>= (const Angle &a) const
bool operator> (const Angle &a) const
double cos () const
double sin () const
double tan () const

Static Public Member Functions

static Angle Degrees (double deg)
static Angle Radians (double rad)
static Angle DegMinSec (double d, double m, double s)
static double cos (const Angle &a)
static double sin (const Angle &a)
static double tan (const Angle &a)
static Angle arccos (double t)
static Angle arcsin (double t)
static Angle arctan (double t)
static Angle arctan2 (double y, double x)


Constructor & Destructor Documentation

code::BoundedAngle::BoundedAngle (  ) 

The default BoundedAngle corresponds to zero degrees.

code::BoundedAngle::BoundedAngle ( const Angle ,
const Angle = Angle() 
)

Build a BoundedAngle from an angle and the minimum bound.

The maximum bound is always 2*pi + _lowerBound

For example, BoundedAngle( Degrees( 370 ), 0 ) will produce a BoundedAngle with its internal storage being 10 degrees.

Parameters:
const_Angle& The angle to be converted.
const_Angle& The lower bound. The upper bound is 2*pi + _lowerBound.


Member Function Documentation

static Angle code::Angle::arccos ( double  t  )  [inline, static, inherited]

static Angle code::Angle::arcsin ( double  t  )  [inline, static, inherited]

static Angle code::Angle::arctan ( double  t  )  [inline, static, inherited]

static Angle code::Angle::arctan2 ( double  y,
double  x 
) [inline, static, inherited]

int code::Angle::compareTo ( const Angle a  )  const [inline, inherited]

static double code::Angle::cos ( const Angle a  )  [inline, static, inherited]

double code::Angle::cos (  )  const [inline, inherited]

static Angle code::Angle::DegMinSec ( double  d,
double  m,
double  s 
) [static, inherited]

double code::Angle::degrees (  )  const [inline, inherited]

static Angle code::Angle::Degrees ( double  deg  )  [inline, static, inherited]

Angle code::Angle::norm (  )  const [inherited]

Angle code::Angle::operator * ( double  d  )  const [inline, inherited]

Angle& code::Angle::operator *= ( double  d  )  [inline, inherited]

bool code::Angle::operator!= ( const Angle a  )  const [inline, inherited]

Angle code::Angle::operator+ ( const Angle a  )  const [inline, inherited]

Angle& code::Angle::operator+= ( const Angle a  )  [inline, inherited]

Angle code::Angle::operator- ( const Angle a  )  const [inline, inherited]

Angle& code::Angle::operator-= ( const Angle a  )  [inline, inherited]

double code::Angle::operator/ ( const Angle a  )  const [inline, inherited]

Angle code::Angle::operator/ ( double  d  )  const [inline, inherited]

Angle& code::Angle::operator/= ( double  d  )  [inline, inherited]

bool code::Angle::operator< ( const Angle a  )  const [inline, inherited]

bool code::Angle::operator<= ( const Angle a  )  const [inline, inherited]

bool code::Angle::operator== ( const Angle a  )  const [inline, inherited]

bool code::Angle::operator> ( const Angle a  )  const [inline, inherited]

bool code::Angle::operator>= ( const Angle a  )  const [inline, inherited]

double code::Angle::radians (  )  const [inline, inherited]

static Angle code::Angle::Radians ( double  rad  )  [inline, static, inherited]

static double code::Angle::sin ( const Angle a  )  [inline, static, inherited]

double code::Angle::sin (  )  const [inline, inherited]

static double code::Angle::tan ( const Angle a  )  [inline, static, inherited]

double code::Angle::tan (  )  const [inline, inherited]

double code::Angle::value ( const std::string &  unit  )  const [inherited]


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7