Lat Long Position
Unmodifiable state version of LatLng, also implementing the GeoPosition interface.
Constructors
Types
Link copied to clipboard
enum DistanceFormula
Possible methods to compute the distance between two latitude-longitude points.
Properties
Functions
Link copied to clipboard
Given a range, produces N coordinates, representing the N opposite vertices of the hypercube having the current coordinate as center and circumscribing the N-sphere defined by the range.
Link copied to clipboard
Distance between two points.
open fun distance(point1: LatLng, point2: LatLng, unit: LengthUnit, df: LatLongPosition.DistanceFormula): Double
Distance between two points with arbitrary LengthUnit.
Link copied to clipboard
open fun distanceInRadians(point1: LatLng, point2: LatLng, precision: LatLongPosition.DistanceFormula): Double
This "distance" function is mostly for internal use.
Link copied to clipboard
Computes the distance between this position and another compatible position.
Link copied to clipboard
Allows to access the value of a coordinate.
Allows to access the value of a coordinate.
Link copied to clipboard
Allows to get the position as a Number array.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Considers both positions as vectors, and returns the difference between this position and the passed one.
Subtracts the provided GeoPosition from this GeoPosition.
Link copied to clipboard
Considers both positions as vectors, and sums them.
Adds two GeoPosition.