GPSPointImpl

data class GPSPointImpl(delegate: LatLongPosition, time: Time) : GPSPoint, GeoPosition

Implementation of a GPS point with time information.

Constructors

Link copied to clipboard
constructor(delegate: LatLongPosition, time: Time)
constructor(latitude: Double, longitude: Double, time: Time)

Properties

Link copied to clipboard
open override val coordinates: DoubleArray

Allows to get the position as a Number array.

Link copied to clipboard
open override val dimensions: Int
Link copied to clipboard
open override val latitude: Double

The latitude of this position.

Link copied to clipboard
open override val longitude: Double

The longitude of this position.

Link copied to clipboard
open override val time: Time
Link copied to clipboard
open override val x: Double
Link copied to clipboard
open override val y: Double

Functions

Link copied to clipboard
open override fun addTime(shift: Time): GPSPointImpl

Returns a copy of this point with the given time added to its time.

Link copied to clipboard
open override fun boundingBox(range: Double): List<GeoPosition>

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. In the case of bidimensional coordinates, it must return the opposite vertices of the square circumscribing the circle with center in this position and radius range.

Link copied to clipboard
open operator override fun compareTo(other: GPSPoint): Int
Link copied to clipboard
open override fun distanceTo(other: GeoPosition): Double

Computes the distance between this position and another compatible position.

Link copied to clipboard
open operator override fun get(dimension: Int): Double

Allows to access the value of a coordinate.

Link copied to clipboard
open override fun getTime(): Time

Returns the time at which this point was recorded.

Link copied to clipboard
open operator override fun minus(other: GeoPosition): GeoPosition

Subtracts other from this GeoPosition.

open operator override fun minus(other: DoubleArray): GeoPosition

Considers both positions as vectors, and returns the difference between this position and the passed one.

Link copied to clipboard
open operator override fun plus(other: GeoPosition): GeoPosition

Adds other to this GeoPosition.

open operator override fun plus(other: DoubleArray): GeoPosition

Considers both positions as vectors, and sums them.

Link copied to clipboard
open override fun subtractTime(t: Time): GPSPointImpl

Returns a copy of this point with the given time subtracted from its time.

Link copied to clipboard
open override fun toString(): String