PHP Class Treffynnon\Navigator\Distance\Calculator\GreatCircle

Inheritance: extends CalculatorAbstract
Afficher le fichier Open project: treffynnon/navigator Class Usage Examples

Méthodes publiques

Méthode Description
calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float Calculate the distance between two points using the Great Circle formula.

Method Details

calculate() public méthode

Supply instances of the coordinate class. http://www.ga.gov.au/earth-monitoring/geodesy/geodetic-techniques/distance-calculation-algorithms.html#circle
public calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float
$point1 Treffynnon\Navigator\LatLong
$point2 Treffynnon\Navigator\LatLong
Résultat float