Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Treffynnon
Navigator
Distance
Calculator
CosineLaw
PHP Class Treffynnon\Navigator\Distance\Calculator\CosineLaw
Inheritance:
extends
CalculatorAbstract
Exibir arquivo
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 Cosine Law.
Method Details
calculate()
public
method
Supply instances of the coordinate class. http://en.wikipedia.org/wiki/Cosine_law
public
calculate
(
Treffynnon\Navigator\LatLong
$point1
,
Treffynnon\Navigator\LatLong
$point2
) :
float
$point1
Treffynnon\Navigator\LatLong
$point2
Treffynnon\Navigator\LatLong
return
float