Rename interpolation parameter to u, to reduce confusion about what is related to time

This commit is contained in:
Emma Broman
2020-02-17 10:30:36 -05:00
parent 3425604a9d
commit 65cf8a79da
5 changed files with 41 additions and 42 deletions
@@ -248,11 +248,11 @@ std::vector<glm::dvec3> AutoNavigationHandler::getCurvePositions(int nPerSegment
return positions;
}
const double dt = 1.0 / nPerSegment;
const double du = 1.0 / nPerSegment;
for (PathSegment &p : _pathSegments) {
for (double t = 0.0; t < 1.0; t += dt) {
auto position = p.getPositionAt(t);
for (double u = 0.0; u < 1.0; u += du) {
auto position = p.getPositionAt(u);
positions.push_back(position);
}
}