Euclidean2DSpace

object Euclidean2DSpace : GeometrySpace<Vector2D> , ScaleOperations<Vector2D>

2D Euclidean space

Functions

add
Link copied to clipboard
open override fun add(left: Vector2D, right: Vector2D): Vector2D
binaryOperation
Link copied to clipboard
open fun binaryOperation(operation: String, left: Vector2D, right: Vector2D): Vector2D
binaryOperationFunction
Link copied to clipboard
open override fun binaryOperationFunction(operation: String): (left: Vector2D, right: Vector2D) -> Vector2D
bindSymbol
Link copied to clipboard
open fun bindSymbol(value: String): Vector2D
bindSymbolOrNull
Link copied to clipboard
open fun bindSymbolOrNull(value: String): Vector2D?
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
scale
Link copied to clipboard
open override fun scale(a: Vector2D, value: Double): Vector2D
times
Link copied to clipboard
open operator fun Number.times(other: Vector2D): Vector2D
open operator fun Vector2D.times(k: Number): Vector2D
unaryMinus
Link copied to clipboard
open operator override fun Vector2D.unaryMinus(): Vector2D
unaryOperation
Link copied to clipboard
open fun unaryOperation(operation: String, arg: Vector2D): Vector2D
unaryOperationFunction
Link copied to clipboard
open override fun unaryOperationFunction(operation: String): (arg: Vector2D) -> Vector2D
unaryPlus
Link copied to clipboard
open operator fun Vector2D.unaryPlus(): Vector2D

Properties

zero
Link copied to clipboard
open override val zero: Vector2D

Sources

common source
Link copied to clipboard