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