AirLay backend

Distance
in package

Table of Contents

RADIUS_OF_EARTH_IN_METERS  = 6371000
calc()  : float
pointToSegment()  : float

Constants

RADIUS_OF_EARTH_IN_METERS

private mixed RADIUS_OF_EARTH_IN_METERS = 6371000

Methods

calc()

public static calc(Point $point1, Point $point2[, string $unit = 'meters' ]) : float
Parameters
$point1 : Point
$point2 : Point
$unit : string = 'meters'

is 'meters' or 'kilometers'

Return values
float

Search results