sqrDistance

open fun sqrDistance(@NonNull from: MPLatLng, @NonNull to: MPLatLng): Double
open fun sqrDistance(@NonNull from: MPPoint, @NonNull to: MPPoint): Double

Given two points, returns the squared distance.

Return

The squared distance in the units set in the MPFastSphericalUtils CTOR

Parameters

from

open fun sqrDistance(    fromLatitude: Double,     fromLongitude: Double,     toLatitude: Double,     toLongitude: Double): Double

Given two points, returns the squared distance.

Return

The squared distance in the units set in the MPFastSphericalUtils CTOR

Parameters

fromLatitude

from latitude

fromLongitude

from longitude

toLatitude

to latitude

toLongitude

to longitude