Fast Spherical Utils
FastSphericalUtils
Use this for indoors, for example, within the same venue. The refLatitude
could be taken from the venue's anchor/position
Credits: Mapbox - Cheap Ruler
Author
Jose J Varó - Copyright © 2018 MapsPeople A/S. All rights reserved.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSquaredDistanceToLine( @NonNull point: LatLng, @NonNull lineP0: LatLng, @NonNull lineP1: LatLng): Double
Content copied to clipboard
open fun getSquaredDistanceToLine( @NonNull point: Point, @NonNull lineP0: Point, @NonNull lineP1: Point): Double
Content copied to clipboard
Link copied to clipboard
@NonNull
Content copied to clipboard
Link copied to clipboard
open fun manhattanDistance(@NonNull from: LatLng, @NonNull to: LatLng): Double
Content copied to clipboard
Given two points, returns the distance.
Link copied to clipboard
open fun updateReferenceLatitude(refLatitude: Double): FastSphericalUtils
Content copied to clipboard
Updates the ruler with a new reference