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
Return values
float —pointToSegment()
public
static pointToSegment(Point $segmentPoint1, Point $segmentPoint2, Point $point) : float