Source
/** Accessor to the angle value in specified units. Implemented units are: deg [DEG], rad [RAD] [Rad].
/*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) Instituto de Estructura de la Materia, 2009
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* "@(#) $Id: ATMAngle.h Exp $"
*
* who when what
* -------- -------- ----------------------------------------------
* pardo 24/03/09 created
*/
using std::string;
ATM_NAMESPACE_BEGIN
/*! \brief Defines a Class for those parameters being angles.
*
* Defines a Class for those physical parameters having units of angle. For
* example the Total Phase Delay can be expressed as an angle (but also as a length).
*/
class Angle
{
public:
enum Units {
UnitRadian,
UnitDegree,
NumAngleUnits
};
/** Default constructor */
Angle();
/** A full constructor: Angle value in default units (SI: radians) */
Angle(double angle);
/** A full constructor: Angle value + units. Implemented units are: deg [DEG], rad [RAD] [Rad]*/
Angle(double angle, const string &units);
Angle(double angle, Units units);
/** Destructor */
virtual ~Angle();