Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Treffynnon
Navigator
Distance
Calculator
Haversine
PHP Class Treffynnon\Navigator\Distance\Calculator\Haversine
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 Haversine formula.
Method Details
calculate()
public
method
Supply instances of the coordinate class. http://en.wikipedia.org/wiki/Haversine_formula
public
calculate
(
Treffynnon\Navigator\LatLong
$point1
,
Treffynnon\Navigator\LatLong
$point2
) :
float
$point1
Treffynnon\Navigator\LatLong
$point2
Treffynnon\Navigator\LatLong
return
float