Need help with some math

var targetY = this.lowerBound + targetPos * (this.upperBound - this.lowerBound);
if I plug in a 4 for this.upperBound and - 4 for this.lowerBound and a 1 for targetPos will targetY evaluate to 0 * 1 + - 4 = -4?
thanks

No :smile:

-4 + 1 * (4 - -4) = 4
-4 + 1 * (8) = 4