Function lerpValue

Lerps between the start and end values.