@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @param float $x x position of Z within bounding box, required: $x in [0.0, 1.0] |
| 30 | 30 | * @param float $y y position of Z within bounding box, required: $y in [0.0, 1.0] |
| 31 | 31 | * @param array $elevationOnBoundingBox elevation data on [p0, p1, p2, p3] |
| 32 | - * @return int estimated elevation on point Z |
|
| 32 | + * @return double estimated elevation on point Z |
|
| 33 | 33 | * @throws InvalidArgumentException |
| 34 | 34 | */ |
| 35 | 35 | public function interpolate($x, $y, array $elevationOnBoundingBox) |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * @param float $latitude |
| 99 | 99 | * @param float $longitude |
| 100 | - * @return float[] array(row, col) |
|
| 100 | + * @return double[] array(row, col) |
|
| 101 | 101 | */ |
| 102 | 102 | protected function getExactRowAndColFor($latitude, $longitude) |
| 103 | 103 | { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | protected function guessInvalidValuesOnBox(array &$elevationOnBoundingBox) |
| 20 | 20 | { |
| 21 | - $validValues = array_filter($elevationOnBoundingBox, function ($val) { |
|
| 21 | + $validValues = array_filter($elevationOnBoundingBox, function($val) { |
|
| 22 | 22 | return false !== $val; |
| 23 | 23 | }); |
| 24 | 24 | $numValidValues = count($validValues); |