GeoPosition

interface GeoPosition : Position2D<GeoPosition>

Represents a specific point on the Earth's surface.

Functions

Link copied to clipboard
abstract fun boundingBox(range: Double): List<P>
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
abstract fun distanceTo(otherPosition: P): Double
Computes the distance between this position and another compatible position.
Link copied to clipboard
abstract fun getCoordinate(dim: Int): Double
Allows to access the value of a coordinate.
Link copied to clipboard
abstract fun getCoordinates(): Array<Double>
Allows to get the position as a Number array.
Link copied to clipboard
abstract fun getDimensions(): Int
Link copied to clipboard
abstract fun getLatitude(): Double
Link copied to clipboard
abstract fun getLongitude(): Double
Link copied to clipboard
abstract fun getX(): Double
Link copied to clipboard
abstract fun getY(): Double
Link copied to clipboard
abstract fun minus(other: GeoPosition): GeoPosition
Subtracts the provided GeoPosition from this GeoPosition.
abstract fun minus(other: Array<Double>): P
Considers both positions as vectors, and returns the difference between this position and the passed one.
Link copied to clipboard
abstract fun plus(other: GeoPosition): GeoPosition
Adds two GeoPosition.
abstract fun plus(other: Array<Double>): P
Considers both positions as vectors, and sums them.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun GeoPosition.toLatLong(): LatLong

Converts this to LatLong.