sqrDistance

open fun sqrDistance(@NonNull from: LatLng, @NonNull to: LatLng): Double
open fun sqrDistance(@NonNull from: Point, @NonNull to: Point): Double

Given two points, returns the squared distance.

Return

The squared distance in the units set in the FastSphericalUtils CTOR

Parameters

from
to

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 FastSphericalUtils CTOR

Parameters

fromLatitude
fromLongitude
toLatitude
toLongitude