Passed
Push — master ( fd93b5...48e916 )
by Doug
40:26 queued 29:39
created

IGNFHeightGrid   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValues() 0 5 1
1
<?php
2
/**
3
 * PHPCoord.
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace PHPCoord\CoordinateOperation;
10
11
use PHPCoord\UnitOfMeasure\Length\Metre;
12
13
class IGNFHeightGrid extends GeographicGeoidHeightGrid
14
{
15
    use IGNFGrid;
16
17
    /**
18
     * @return Metre[]
19
     */
20
    public function getValues(float $x, float $y): array
21
    {
22
        $shift = $this->interpolate($x, $y)[0];
23
24
        return [new Metre($shift)];
25
    }
26
}
27