Vec

interface Vec<T : Vec<T>> : Comparable<T> (source)

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun abs(): T
Link copied to clipboard
open fun add(v: T): T
open fun add(n: Double): T
Link copied to clipboard
abstract fun any(f: DoublePredicate): Boolean
Link copied to clipboard
abstract fun array(): DoubleArray
Link copied to clipboard
open fun clamp(min: T, max: T): T
open fun clamp(min: Double, max: Double): T
Link copied to clipboard
abstract operator fun compareTo(other: T): Int
Link copied to clipboard
abstract fun dim(): Int
Link copied to clipboard
open operator fun div(v: T): T
open operator fun div(k: Double): T
Link copied to clipboard
abstract fun every(f: DoublePredicate): Boolean
Link copied to clipboard
open fun length(): Double
Link copied to clipboard
open fun lengthSquared(): Double
Link copied to clipboard
abstract fun map(f: DoubleUnaryOperator): T
Link copied to clipboard
open fun mul(v: T): T
open fun mul(k: Double): T
Link copied to clipboard
open fun negate(): T
Link copied to clipboard
open fun norm(): T
Link copied to clipboard
abstract fun nth(idx: Int): Double
Link copied to clipboard
open fun pseudoNorm(): T
Link copied to clipboard
abstract fun reduce(f: DoubleBinaryOperator, init: Double): Double
Link copied to clipboard
open fun sub(v: T): T
open fun sub(n: Double): T
Link copied to clipboard
abstract fun zip(v: T, f: DoubleBinaryOperator): T