Fix inconsistent total velocity.
Fix inconsistent total acceleration.
Add distanceToCoord function.
Update comment.
Simplify math.
Shorten variable names.
Condense lines.
Fix variable name.
Rename variables.