]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blob - api/bcar.h
Add basic CMake, BicycleCar class
[hubacji1/bcar.git] / api / bcar.h
1 #ifndef BCAR_H
2 #define BCAR_H
3
4 /*! \brief Bicycle car basic class.
5
6 This class contains some geometrical computations of bicycle car.
7 */
8 class BicycleCar {
9         private:
10                 double x_ = 0;
11                 double y_ = 0;
12                 double h_ = 0;
13         public:
14                 double x() { return this->x_; }
15                 void x(double x) { this->x_ = x; }
16
17                 double y() { return this->y_; }
18                 void y(double y) { this->y_ = y; }
19
20                 double h() { return this->h_; }
21                 void h(double h) { this->h_ = h; }
22 };
23
24 #endif /* BCAR_H */