Vector1

Constructors

Link copied to clipboard
constructor(x: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val length: Double

length in Euclidean space

Link copied to clipboard

normalized vector

Link copied to clipboard
open override val squaredLength: Double

squared length in Euclidean space

Link copied to clipboard
val x: Double
Link copied to clipboard
open override val zero: Vector1

returns the zero vector

Functions

Link copied to clipboard
open override fun areaBetween(other: Vector1): Double

returns the area of the parallelogram formed by extruding this over other

Link copied to clipboard
open fun atan2(other: Vector1): Double

atan2 style angle between this and other

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

distance to other in Euclidean space

Link copied to clipboard
open operator override fun div(scale: Double): Vector1
Link copied to clipboard
open infix override fun dot(right: Vector1): Double

dot product between this and right

Link copied to clipboard
open override fun map(function: (Double) -> Double): Vector1

apply function to all components

Link copied to clipboard
open operator override fun minus(right: Vector1): Vector1
Link copied to clipboard
open operator override fun plus(right: Vector1): Vector1
Link copied to clipboard
open infix fun projectedOn(on: Vector1): Vector1

project this vector on on

Link copied to clipboard
open infix fun reflectedOver(surfaceNormal: Vector1): Vector1

reflect this vector over surfaceNormal

Link copied to clipboard
open override fun squaredDistanceTo(other: Vector1): Double

squared distance to other in Euclidean space

Link copied to clipboard
open operator override fun times(scale: Double): Vector1