PHP 인터페이스 Treffynnon\Navigator\Distance\Calculator\CalculatorInterface

파일 보기 프로젝트 열기: treffynnon/navigator

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

calculate() 공개 메소드

Calculate the distance between two coordinates
public calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float
$point1 Treffynnon\Navigator\LatLong
$point2 Treffynnon\Navigator\LatLong
리턴 float Distance in metres

getCelestialBody() 공개 메소드

public getCelestialBody ( )

setCelestialBody() 공개 메소드

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