Biorbd
Range.h
1 #ifndef BIORBD_UTILS_RANGE_H
2 #define BIORBD_UTILS_RANGE_H
3 
4 #include "biorbdConfig.h"
5 
6 #include <memory>
7 
8 namespace biorbd {
9 namespace utils {
10 
14 class BIORBD_API Range
15 {
16 public:
17 
21  Range(
22  double min = -M_PI,
23  double max = M_PI);
24 
29  biorbd::utils::Range DeepCopy() const;
30 
35  void DeepCopy(const biorbd::utils::Range& other);
36 
41  void setMin(double min);
42 
47  double min() const;
48 
53  void setMax(double max);
54 
59  double max() const;
60 
61 protected:
62  std::shared_ptr<double> m_min;
63  std::shared_ptr<double> m_max;
64 };
65 
66 }}
67 
68 #endif // BIORBD_UTILS_RANGE_H
biorbd::utils::Range::m_max
std::shared_ptr< double > m_max
The maximal value allowed by the range.
Definition: Range.h:63
biorbd::utils::Range
Class Range.
Definition: Range.h:15
biorbd::utils::Range::m_min
std::shared_ptr< double > m_min
The minimal value allowed by the range.
Definition: Range.h:62