Cutoff variant (skip far pedestrian pairs)

This commit is contained in:
Linus Baumberger
2026-05-21 19:16:40 +02:00
committed by [Quy Anh] «Elliot» Nguyen
parent f09ccd8a49
commit 52281d8b9f
6 changed files with 13029 additions and 3 deletions
+4 -1
View File
@@ -48,7 +48,7 @@ const double phi = 100.0 / 180.0 * M_PI;
// $cos(\varphi)$
const double cos_phi = cos(phi);
//
//
// $\frac{1}{cos(\varphi)}$
//
const double cos_phi_inv = 1 / cos(phi);
@@ -96,6 +96,9 @@ const double EPS = 1e-9;
// Squared numerical tolerance
const double EPS_SQ = EPS * EPS;
// Cutoff for pedestrian-pedestrian repulsion
const double CUTOFF = 12.0;
const double CUTOFF_SQ = CUTOFF * CUTOFF;
const double cos_phi_sq = cos_phi * cos_phi;