Types

Link copied to clipboard
object VectorSerializer : KSerializer<DoubleVector2D>

Functions

Link copied to clipboard
open override fun add(left: DoubleVector2D, right: DoubleVector2D): DoubleVector2D
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun bindSymbol(value: String): DoubleVector2D
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
open override fun norm(arg: DoubleVector2D): Double
Link copied to clipboard
Link copied to clipboard
fun <V : Vector> GeometrySpace<V>.projectAlong(vector: V, normal: V, base: V): V

Project vector onto a hyperplane, which is defined by a normal and base. In 2D case it is the projection to a line, in 3d case it is the one to a plane.

Link copied to clipboard
fun <V : Vector> GeometrySpace<V>.projectToLine(vector: V, line: Line<V>): V

Project vector onto a line.

Link copied to clipboard
open override fun scale(a: DoubleVector2D, value: Double): DoubleVector2D
Link copied to clipboard
open operator fun Number.times(arg: DoubleVector2D): DoubleVector2D
open operator fun DoubleVector2D.times(k: Number): DoubleVector2D
Link copied to clipboard
open operator override fun DoubleVector2D.unaryMinus(): DoubleVector2D
Link copied to clipboard
Link copied to clipboard
open override fun unaryOperationFunction(operation: String): (DoubleVector2D) -> DoubleVector2D
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val zero: DoubleVector2D