Vector2D

interface Vector2D : Buffer<Double> , Vector

Functions

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

Properties

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

Extensions

distanceTo
Link copied to clipboard
open override fun Vector2D.distanceTo(other: Vector2D): Double
L2 distance
div
Link copied to clipboard
open operator fun Vector2D.div(k: Number): Vector2D
dot
Link copied to clipboard
open infix override fun Vector2D.dot(other: Vector2D): Double
Scalar product
minus
Link copied to clipboard
open operator fun Vector2D.minus(other: Vector2D): Vector2D
norm
Link copied to clipboard
fun Vector2D.norm(): Double
plus
Link copied to clipboard
open operator fun Vector2D.plus(other: Vector2D): Vector2D
r
Link copied to clipboard
val Vector2D.r: Double
times
Link copied to clipboard
open operator fun Vector2D.times(k: Number): Vector2D
unaryMinus
Link copied to clipboard
open operator override fun Vector2D.unaryMinus(): Vector2D
unaryPlus
Link copied to clipboard
open operator fun Vector2D.unaryPlus(): Vector2D

Sources

common source
Link copied to clipboard