Cutoff variant (skip far pedestrian pairs)
This commit is contained in:
committed by
[Quy Anh] «Elliot» Nguyen
parent
f09ccd8a49
commit
52281d8b9f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user