code::Angle Class Reference

Inheritance diagram for code::Angle:

code::BoundedAngle List of all members.

Detailed Description

Store an angle.

This class can be used to perform degree-to-radian conversion, etc.

Author:
Lulin Song, Thomas E. Vaughan, Charles Kerr
Author
lakshman
Date
2009/06/02 20:17:38
Id
code_Angle.h,v 1.43 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 Angle ()
 By default, build the zero angle.
 Angle (double value, const std::string &unit)
 Build from a number and a unit string, which could be either "degrees" or "radians".
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::Angle::Angle (  )  [inline]

By default, build the zero angle.

code::Angle::Angle ( double  value,
const std::string &  unit 
)

Build from a number and a unit string, which could be either "degrees" or "radians".


Member Function Documentation

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

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

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

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

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

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

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

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

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

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

Angle code::Angle::norm (  )  const

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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