AbstractPosition

abstract class AbstractPosition<P : Position<P>> : Position<P> (source)

N-dimensional position.

Parameters

copy

true if it is unsafe to store the coordinates array as-is.

coordinates

the array of coordinates.

Type Parameters

P

actual type

Properties

Link copied to clipboard
override val coordinates: DoubleArray
Link copied to clipboard
override val dimensions: Int

Functions

Link copied to clipboard
override fun boundingBox(range: Double): List<P>
Link copied to clipboard
override fun distanceTo(other: P): Double
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator override fun get(dimension: Int): Double
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
operator fun minus(other: P): P

Same as minus, with the internal representation of other.

operator override fun minus(other: DoubleArray): P
Link copied to clipboard
operator fun plus(other: P): P

Same as plus, with the internal representation of other.

operator override fun plus(other: DoubleArray): P
Link copied to clipboard
open override fun toString(): String

Prints the coordinates.