1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PlaneGCSSolver_AngleWrapper.cpp
4 // Created: 18 Dec 2015
5 // Author: Artem ZHIDKOV
7 #include <PlaneGCSSolver_AngleWrapper.h>
11 static double deg2rad(double theDegrees)
13 return theDegrees * M_PI / 180.0;
16 static double rad2deg(double theRadians)
18 return theRadians * 180.0 / M_PI;
21 PlaneGCSSolver_AngleWrapper::PlaneGCSSolver_AngleWrapper(double *const theParam)
22 : PlaneGCSSolver_ScalarWrapper(theParam)
27 void PlaneGCSSolver_AngleWrapper::setValue(double theValue)
29 *(myValue) = deg2rad(theValue);
32 double PlaneGCSSolver_AngleWrapper::value() const
34 return rad2deg(*myValue);