Salome HOME
SketchSolver Refactoring: Eliminate SolveSpace as a sketch solver.
[modules/shaper.git] / src / SketchSolver / PlaneGCSSolver / PlaneGCSSolver_ScalarWrapper.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:    PlaneGCSSolver_ScalarWrapper.cpp
4 // Created: 14 Dec 2015
5 // Author:  Artem ZHIDKOV
6
7 #include <PlaneGCSSolver_ScalarWrapper.h>
8
9 #include <cmath>
10
11 PlaneGCSSolver_ScalarWrapper::PlaneGCSSolver_ScalarWrapper(double *const theParam)
12   : myValue(theParam)
13 {
14 }
15
16 void PlaneGCSSolver_ScalarWrapper::setValue(double theValue)
17 {
18   *myValue = theValue;
19 }
20
21 double PlaneGCSSolver_ScalarWrapper::value() const
22 {
23   return *myValue;
24 }