AbstractPosition

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

N-dimensional position.

Parameters

<P>

actual type

Functions

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

Inheritors

Link copied to clipboard