core/vcsl/vcsl_degree.cxx
Go to the documentation of this file.
00001 // This is core/vcsl/vcsl_degree.cxx
00002 #include "vcsl_degree.h"
00003 #include <vnl/vnl_math.h>
00004 
00005 //---------------------------------------------------------------------------
00006 // Returns the number of units of `this' equal of the standard_unit for
00007 // the dimension
00008 //---------------------------------------------------------------------------
00009 double vcsl_degree::units_per_standard_unit() const
00010 {
00011   static double u = vnl_math::deg_per_rad; // = 57.29577951
00012   return u;
00013 }
00014 
00015 //---------------------------------------------------------------------------
00016 // Return the reference to the unique vcsl_degree object
00017 //---------------------------------------------------------------------------
00018 vcsl_degree_sptr vcsl_degree::instance()
00019 {
00020   static vcsl_degree_sptr instance_=new vcsl_degree;
00021   return instance_;
00022 }