SphereDistance

Function of: MathExt
Returns: Number
Tags:  static

Calculates the distance between two points on a sphere (Haversine formula).

Parameters
Name Type Description
lat1Number
lon1Number
lat2Number
lon2Number
radiusNumber
Example
local function_output = MathExt.SphereDistance(Number lat1,
Number lon1,
Number lat2,
Number lon2,
Number radius
)