Vector2D

interface Vector2D : Buffer<Double> , Vector, SpaceElement<Vector2D, Euclidean2DSpace>

Functions

contentEquals
Link copied to clipboard
common
open fun contentEquals(other: Buffer<*>): Boolean
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
get
Link copied to clipboard
common
open operator override fun get(index: Int): Double
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<Double>
toString
Link copied to clipboard
common
open fun toString(): String

Properties

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

Extensions

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