Vector2D

interface Vector2D<T> : Buffer<T> , Vector(source)

Functions

Link copied to clipboard
Link copied to clipboard
operator fun <T> Vector2D<T>.component1(): T
Link copied to clipboard
operator fun <T> Vector2D<T>.component2(): T
Link copied to clipboard
open override fun DoubleVector2D.distanceTo(other: DoubleVector2D): Double

L2 distance

Link copied to clipboard
open operator fun DoubleVector2D.div(k: Number): DoubleVector2D
Link copied to clipboard
open infix override fun DoubleVector2D.dot(other: DoubleVector2D): Double

Scalar product

Link copied to clipboard
fun Float64Vector2D.equalsVector(other: Float64Vector2D, precision: Double = DEFAULT_PRECISION): Boolean

Vector equality using Euclidian L2 norm and given precision

Link copied to clipboard
open operator override fun get(index: Int): T
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator fun DoubleVector2D.times(k: Number): DoubleVector2D
Link copied to clipboard
abstract override fun toString(): String
Link copied to clipboard
open operator override fun DoubleVector2D.unaryMinus(): DoubleVector2D
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open override val size: Int
Link copied to clipboard
abstract val x: T
Link copied to clipboard
abstract val y: T