getCurrentCadence()

in frontend/src/lib/racer.js [39:43]


  getCurrentCadence(pctComplete) {
    if (pctComplete < 0 || pctComplete > 1) throw new Error('pctComplete out of range: 0-1 expected')
    // Racer will trend from _thisRaceminCadence to _thisRacemaxCadence over the course of the race.
    return ((this._thisRacemaxCadence - this._thisRaceminCadence) * pctComplete) + this._thisRaceminCadence
  }