AbstractPosition

abstract class AbstractPosition<P : Position<P>?> : Position<P>

N-dimensional position.

Parameters

<P>

actual type

Functions

Link copied to clipboard
@Nonnull
fun boundingBox(range: Double): List<P>
Link copied to clipboard
fun distanceTo(@Nonnull other: P): Double
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
fun getCoordinate(dimension: Int): Double
Link copied to clipboard
@Nonnull
fun getCoordinates(): Array<Double>
Link copied to clipboard
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
@Nonnull
fun minus(@Nonnull other: P): P
Same as minus, with the internal representation of other.
@Nonnull
fun minus(@Nonnull other: Array<Double>): P
Link copied to clipboard
@Nonnull
fun plus(@Nonnull other: P): P
Same as plus, with the internal representation of other.
@Nonnull
fun plus(@Nonnull other: Array<Double>): P
Link copied to clipboard
open fun toString(): String
Prints the coordinates.