was.php – Blame information for rev 10
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
10 | office | 1 | <?php |
2 | |||
3 | ########################################################################## |
||
4 | ## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
||
5 | ########################################################################### |
||
6 | function mapValueToRange($value, $xMin, $xMax, $yMin, $yMax) { |
||
7 | return $yMin + ( |
||
8 | ( |
||
9 | $yMax - $yMin |
||
10 | ) |
||
11 | * |
||
12 | ( |
||
13 | $value - $xMin |
||
14 | ) |
||
15 | / |
||
16 | ( |
||
17 | $xMax - $xMin |
||
18 | ) |
||
19 | ); |
||
20 | } |