Virtual Testbed
Ship dynamics simulator for extreme conditions
rudder.hh
1 #ifndef VTESTBED_CORE_RUDDER_HH
2 #define VTESTBED_CORE_RUDDER_HH
3 
4 namespace vtb {
5 
6  namespace core {
7 
8  template <class T>
9  class Rudder {
10 
11  private:
12  T _angle{};
13 
14  public:
15 
16  Rudder() = default;
17 
18  inline explicit
19  Rudder(T angle): _angle(angle) {}
20 
21  inline void angle(T rhs) { this->_angle = rhs; }
22  inline T angle() const { return this->_angle; }
23 
24  };
25 
26  }
27 }
28 
29 #endif // vim:filetype=cpp
Main namespace.
Definition: convert.hh:9