-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattributes.h
39 lines (29 loc) · 1.11 KB
/
attributes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by user on 7/30/23.
//
#ifndef EFFICIENTPARAFOILGRID_ATTRIBUTES_H
#define EFFICIENTPARAFOILGRID_ATTRIBUTES_H
#include "parameters.h"
#include <iostream>
#include <utility>
#include <alglib/specialfunctions.h>
class Attributes {
public: // _i is at present time
Attributes(double psi_i, double psi_d_i, double psi_dd_i, double x_i, double y_i);
Attributes gen_next_attributes(const Parameters &p, const double &u,
const double &t_i, const double &t_f) const;
double psi_i,
psi_d_i,
psi_dd_i,
x_i,
y_i;
// to be privated or moved
private:
std::pair<double, double>
fxfy(const Parameters &p, const double &psi_dd_f, const double &t_i, const double &t_f) const;
std::pair<double, double>
fxfy2(const Parameters &p, const double &psi_dd_f, const double &t_i, const double &t_f) const;
double fpsi(const double &psi_dd_f, const double &t_i, const double &t_f) const;
double fpsi_d(const double &psi_dd_f, const double &t_i, const double &t_f) const;
};
#endif //EFFICIENTPARAFOILGRID_ATTRIBUTES_H