IGNFHeightGrid   A
last analyzed

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