Vec1

data class Vec1(val x: Double) : Vec<Vec1> (source)

Constructors

Link copied to clipboard
constructor(x: Double)

Properties

Link copied to clipboard
val x: Double

Functions

Link copied to clipboard
open fun abs(): Vec1
Link copied to clipboard
open fun add(n: Double): Vec1
open fun add(v: Vec1): Vec1
Link copied to clipboard
open override fun any(f: DoublePredicate): Boolean
Link copied to clipboard
open override fun array(): DoubleArray
Link copied to clipboard
open fun clamp(min: Double, max: Double): Vec1
open fun clamp(min: Vec1, max: Vec1): Vec1
Link copied to clipboard
open operator override fun compareTo(other: Vec1): Int
Link copied to clipboard
open override fun dim(): Int
Link copied to clipboard
open operator fun div(k: Double): Vec1
open operator fun div(v: Vec1): Vec1
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun every(f: DoublePredicate): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun length(): Double
Link copied to clipboard
open fun lengthSquared(): Double
Link copied to clipboard
open override fun map(f: DoubleUnaryOperator): Vec1
Link copied to clipboard
open fun mul(k: Double): Vec1
open fun mul(v: Vec1): Vec1
Link copied to clipboard
open fun negate(): Vec1
Link copied to clipboard
open fun norm(): Vec1
Link copied to clipboard
open override fun nth(idx: Int): Double
Link copied to clipboard
open fun pseudoNorm(): Vec1
Link copied to clipboard
open override fun reduce(f: DoubleBinaryOperator): Double
open override fun reduce(f: DoubleBinaryOperator, init: Double): Double
Link copied to clipboard
open fun sub(n: Double): Vec1
open fun sub(v: Vec1): Vec1
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun vec2(y: Double): Vec2
Link copied to clipboard
fun vec3(v: Vec2): Vec3
fun vec3(y: Double, z: Double): Vec3
Link copied to clipboard
fun vec4(v: Vec3): Vec4
fun vec4(y: Double, z: Double, w: Double): Vec4
Link copied to clipboard
open override fun zip(v: Vec1, f: DoubleBinaryOperator): Vec1