PHP Class Treffynnon\Navigator\Distance\Calculator\GreatCircle

Inheritance: extends CalculatorAbstract
ファイルを表示 Open project: treffynnon/navigator Class Usage Examples

Public Methods

Method 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 method

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
return float