Quote:
|
Originally Posted by PaulyP
Taelorn: I think you may have made a mistake here with the relativePosition equation, but i apologise if i've got it wrong myself.
|
At a glance, my min and max values are flipped in that post. minValue is supposed to be the value at minimum range and maxValue is the value at max range.
maxValue = 100%
minValue = 0%
should be
maxValue = 0%
minValue = 100%
Quote:
|
Originally Posted by PaulyP
Using your equations for the relative range at 50 yards we get:
relativePosition = (50 - 0) / (500 - 0) = 250 / 500 = 0.1
actualValue = 0% + ((100% - 0%) * 0.1) = 10%
so at 50 yards you only have a 10% chance to hit it.
|
Becomes:
relativePosition = (50 - 0) / (500 - 0) = 250 / 500 = 0.1
actualValue = 100% + ((0% - 100%) * 0.1) = 90%
Quote:
|
Originally Posted by PaulyP
at 450 yards:
relativePosition = (450 - 0) / (500 - 0) = 250 / 500 = 0.9
actualValue = 0% + ((100% - 0%) * 0.9) = 90%
so at 450 yards you have a 90% chance to hit it.
|
relativePosition = (450 - 0) / (500 - 0) = 250 / 500 = 0.9
actualValue = 100% + ((0% - 100%) * 0.9) = 10%
So, you're right that it's backwards, although it's where I assigned the numbers as opposed to the formula (but flipping the formula works too).