GenLib2::Angle Class Reference

Angle class. More...

#include <angle.h>

Inheritance diagram for GenLib2::Angle:

GenLib2::UnitAngle

List of all members.

Public Member Functions

 Angle (bool dms=false)
 default constructor
 Angle (const string &s, bool dms=false)
 constructor using symbol
void dec ()
 set decimal format
void dms ()
 set DMS format
bool is_dms () const
 check DMS format
void set (double v)
 set value
double get () const
 get value
void rad (double v)
 set value in radiant
double rad () const
 get value radiant
double deg () const
 get value gon
double gon () const
 get value gon
const char * unit () const
 get unit

Private Attributes

double _val
 value in radiant
bool _is_dms
 DMS (true) or decimal (false).


Detailed Description

Angle class.

Principle: [measurement] = [value] + [unit]).

Author:
Dirk Stallmann

The documentation for this class was generated from the following file:

Generated on Wed Aug 6 15:46:43 2008 by  doxygen 1.5.5