PHP Class Treffynnon\Navigator\Distance\Calculator\CalculatorAbstract

Inheritance: implements Treffynnon\Navigator\Distance\Calculator\CalculatorInterface
Afficher le fichier Open project: treffynnon/navigator

Méthodes publiques

Свойство Type Description
$celestialBody

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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

calculate() abstract public méthode

Calculate the distance between two coordinates
abstract public calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float
$point1 Treffynnon\Navigator\LatLong
$point2 Treffynnon\Navigator\LatLong
Résultat float Distance in metres

getCelestialBody() public méthode

public getCelestialBody ( )

setCelestialBody() public méthode

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

Property Details

$celestialBody public_oe property

public $celestialBody