Vector2D

interface Vector2D : Buffer<Double> , Vector

Functions

Link copied to clipboard
open operator override fun get(index: Int): Double
Link copied to clipboard
open operator override fun iterator(): Iterator<Double>
Link copied to clipboard
abstract override fun toString(): String

Properties

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

Extensions

Link copied to clipboard
open override fun Vector2D.distanceTo(other: Vector2D): Double

L2 distance

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

Scalar product

Link copied to clipboard
open operator fun Vector2D.minus(arg: Vector2D): Vector2D
Link copied to clipboard
fun Vector2D.norm(): Double
Link copied to clipboard
open operator fun Vector2D.plus(arg: Vector2D): Vector2D
Link copied to clipboard
val Vector2D.r: Double
Link copied to clipboard
open operator fun Vector2D.times(k: Number): Vector2D
Link copied to clipboard
open operator override fun Vector2D.unaryMinus(): Vector2D
Link copied to clipboard
open operator fun Vector2D.unaryPlus(): Vector2D

Sources

Link copied to clipboard