AbstractEuclideanPosition

N-dimensional Euclidean 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

Inheritors

Properties

Link copied to clipboard
override val coordinates: DoubleArray
Link copied to clipboard
override val dimensions: Int
Link copied to clipboard
open val magnitude: Double
Link copied to clipboard
open val zero: P

Functions

Link copied to clipboard
open fun angleBetween(other: P): Double
Link copied to clipboard
override fun boundingBox(range: Double): List<P>
Link copied to clipboard
open fun coerceAtLeast(minimumMagnitude: Double): P
Link copied to clipboard
open fun coerceAtMost(maximumMagnitude: Double): P
Link copied to clipboard
open fun coerceIn(minimumMagnitude: Double, maximumMagnitude: Double): P
Link copied to clipboard
override fun distanceTo(other: P): Double
Link copied to clipboard
open operator fun div(other: Double): P
Link copied to clipboard
open fun dot(other: P): Double
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract fun fromCoordinates(coordinates: DoubleArray): P
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
operator override fun minus(other: DoubleArray): P
Link copied to clipboard
abstract fun normal(): P
Link copied to clipboard
abstract fun normalized(): P
Link copied to clipboard
operator fun plus(other: P): P
operator override fun plus(other: DoubleArray): P
Link copied to clipboard
open fun resized(newLen: Double): P
Link copied to clipboard
abstract operator fun times(other: Double): P
Link copied to clipboard
open override fun toString(): String