We're using `fabs(locationOffset)` a lot. We should probably calculate it once and store it in a local variable.