Marine systems simulation
WindCurve.h
1#ifndef CWindCurve_h__
2#define CWindCurve_h__
3
4#include <vector>
5
6namespace Ship{
8 {
9 public:
10 void SetXData(std::vector<double> &angle, std::vector<double> &data);
11 void SetYData(std::vector<double> &angle, std::vector<double> &data);
12 void SetNData(std::vector<double> &angle, std::vector<double> &data);
13 void SetMData(std::vector<double> &angle, std::vector<double> &data);
14
15 double GetX(double Angle);
16 double GetY(double Angle);
17 double GetN(double Angle);
18 double GetM(double Angle);
19 private:
20 std::vector<double> Interp1D( std::vector<double> &x1, std::vector<double> &val, std::vector<double> &x2 );
21
22
23 std::vector<double> Angle;
24 std::vector<double> X;
25 std::vector<double> Y;
26 std::vector<double> N;
27 std::vector<double> M;
28 };
29}
30#endif // CWindCurve_h__
Definition: WindCurve.h:8
Simple waypoint object.
Definition: CableAttach.h:16