Main Page | Class Hierarchy | Class List | File List

PlaneAngle.cc

Go to the documentation of this file.
00001 
00005 /* Copyright (C) 2002 - 2005, Bernd Speiser */
00006 
00007 /* This file is part of PhysicalQuantities.
00008 
00009 PhysicalQuantities is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 PhysicalQuantities is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 GNU General Public License for more details.
00018   
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022 02111-1307, USA.
00023 */
00024 
00025 #ifndef _PlaneAngle_cc
00026 #define _PlaneAngle_cc
00027 
00028 #include "Quantity/Variable.h"
00029 
00030 #include "PhysicalQuantities/PlaneAngle.h"
00031 
00032 namespace quantity {
00033   namespace planeAngle {
00034 
00035 /* definition of PlaneAngle units */
00036 /* the radian and prefixed radians */
00037 
00038 template<> const std::string Radians::Basename = "radian";
00039 template<> const std::string Radians::Basesymbol = "rad";
00040 template<> const bool Radians::SI = true;
00041 
00042 /* the degree */
00043 
00044 template<> const std::string Degree::Namestring  = "degree";
00045 template<> const std::string Degree::Symbolstring = "deg";
00046 template<> const bool Degree::SI = false;
00047 
00048 /* the minute */
00049 
00050 template<> const std::string Minute::Namestring  = "minute";
00051 template<> const std::string Minute::Symbolstring = "'";
00052 template<> const bool Minute::SI = false;
00053 
00054 /* the second */
00055 
00056 template<> const std::string Second::Namestring  = "second";
00057 template<> const std::string Second::Symbolstring = "''";
00058 template<> const bool Second::SI = false;
00059 
00060 /* the grade */
00061 
00062 template<> const std::string Grade::Namestring  = "grade";
00063 template<> const std::string Grade::Symbolstring = "grad";
00064 template<> const bool Grade::SI = false;
00065 
00066 template<> const long Standard<Radians, long>::ratio = 1;
00067 template<> const double Standard<Radians>::ratio = 1.;
00068 template<> const bool Standard<Radians>::exact = true;
00069 
00070 template<> const double Standard<Degree>::ratio
00071                                           = (4. * std::atan (1.0))/180.;
00072 template<> const bool Standard<Degree>::exact = true;
00073 
00074 template<> const double Standard<Minute>::ratio
00075                                         = (4. * std::atan (1.0))/10800.;
00076 template<> const bool Standard<Minute>::exact = true;
00077 
00078 template<> const double Standard<Second>::ratio
00079                                        = (4. * std::atan (1.0))/648000.;
00080 template<> const bool Standard<Second>::exact = true;
00081 
00082 template<> const double Standard<Grade>::ratio
00083                                           = (4. * std::atan (1.0))/200.;
00084 template<> const bool Standard<Grade>::exact = true;
00085 
00086   }
00087 
00088 template<> const std::string 
00089                    Name<planeAngle::Quantity>::String = "plane angle";
00090 template<> const std::string Symbol<planeAngle::Quantity>::String = "";
00091 
00092 template<> const std::string 
00093                   Name<planeAngle::IntQuantity>::String = "plane angle";
00094 template<> const std::string 
00095                            Symbol<planeAngle::IntQuantity>::String = "";
00096 
00097 }
00098 
00099 #endif /* _PlaneAngle_cc */

Generated on Mon Feb 12 18:48:49 2007 for PhysicalQuantities by doxygen 1.3.6