Update file main.cpp
This commit is contained in:
@@ -24,35 +24,35 @@ struct Vector2d {
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// Numer of pedestrians
|
||||
// $n_p$
|
||||
const int n_p = 100;
|
||||
// Numer of pedestrians
|
||||
// $n_p$
|
||||
const int n_p = 100;
|
||||
|
||||
// Number of iterations
|
||||
// $n_{iter}$
|
||||
const int n_iter = 100;
|
||||
// Number of iterations
|
||||
// $n_{iter}$
|
||||
const int n_iter = 100;
|
||||
|
||||
// TODO: Change this
|
||||
// $\tau$
|
||||
const double tau = 0.12345;
|
||||
// TODO: Change this
|
||||
// $\tau$
|
||||
const double tau = 0.12345;
|
||||
|
||||
void compute_acceleration_term(Vector2d *F_i) {}
|
||||
void compute_repulsive_effects_from_pedestrians(Vector2d *F_i) {}
|
||||
void compute_repulsive_effects_from_borders(Vector2d *F_i) {}
|
||||
void compute_acceleration_term(Vector2d *F_i) {}
|
||||
void compute_repulsive_effects_from_pedestrians(Vector2d *F_i) {}
|
||||
void compute_repulsive_effects_from_borders(Vector2d *F_i) {}
|
||||
|
||||
// Return an array of doubles
|
||||
double *w(Vector2d e, Vector2d f) {
|
||||
// Return an array of doubles
|
||||
double *w(Vector2d e, Vector2d f) {
|
||||
|
||||
// TODO:
|
||||
// $cos(60\degree)$
|
||||
// if (e * f > f.norm() * (0.5)) {
|
||||
// }
|
||||
// return 0;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main() {
|
||||
|
||||
// ! DONT TOUCH
|
||||
|
||||
@@ -102,6 +102,4 @@ struct Vector2d {
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user