PHP Интерфейс Treffynnon\Navigator\Distance\Calculator\CalculatorInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract $body = null )
calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float Calculate the distance between two coordinates
getCelestialBody ( )
setCelestialBody ( Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract $body )

Описание методов

__construct() публичный Метод

public __construct ( Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract $body = null )
$body Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract

calculate() публичный Метод

Calculate the distance between two coordinates
public calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float
$point1 Treffynnon\Navigator\LatLong
$point2 Treffynnon\Navigator\LatLong
Результат float Distance in metres

getCelestialBody() публичный Метод

public getCelestialBody ( )

setCelestialBody() публичный Метод

public setCelestialBody ( Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract $body )
$body Treffynnon\Navigator\CelestialBody\CelestialBodyAbstract