vcsl_degree.cxx
Go to the documentation of this file.
1 // This is core/vcsl/vcsl_degree.cxx
2 #include "vcsl_degree.h"
3 #include <vnl/vnl_math.h>
4 
5 //---------------------------------------------------------------------------
6 // Returns the number of units of `this' equal of the standard_unit for
7 // the dimension
8 //---------------------------------------------------------------------------
10 {
11  static double u = vnl_math::deg_per_rad; // = 57.29577951
12  return u;
13 }
14 
15 //---------------------------------------------------------------------------
16 // Return the reference to the unique vcsl_degree object
17 //---------------------------------------------------------------------------
19 {
20  static vcsl_degree_sptr instance_=new vcsl_degree;
21  return instance_;
22 }
static vcsl_degree_sptr instance()
Return the reference to the unique vcsl_degree object.
Definition: vcsl_degree.cxx:18
double units_per_standard_unit() const override
Returns the number of units of ‘this’ equal of the standard_unit for the dimension.
Definition: vcsl_degree.cxx:9
A unit associated to the angle dimension.
vcsl_degree()=default