Vec4

data class Vec4(val x: Double, val y: Double, val z: Double, val w: Double) : Vec<Vec4> (source)

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, z: Double, w: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val w: Double
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double
Link copied to clipboard
val z: Double

Functions

Link copied to clipboard
open fun abs(): Vec4
Link copied to clipboard
open fun add(n: Double): Vec4
open fun add(v: Vec4): Vec4
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): Vec4
open fun clamp(min: Vec4, max: Vec4): Vec4
Link copied to clipboard
open operator override fun compareTo(other: Vec4): Int
Link copied to clipboard
open override fun dim(): Int
Link copied to clipboard
open operator fun div(k: Double): Vec4
open operator fun div(v: Vec4): Vec4
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): Vec4
Link copied to clipboard
open fun mul(k: Double): Vec4
open fun mul(v: Vec4): Vec4
Link copied to clipboard
open fun negate(): Vec4
Link copied to clipboard
open fun norm(): Vec4
Link copied to clipboard
open override fun nth(idx: Int): Double
Link copied to clipboard
open fun pseudoNorm(): Vec4
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): Vec4
open fun sub(v: Vec4): Vec4
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun vec2(): Vec2
Link copied to clipboard
fun vec3(): Vec3
Link copied to clipboard
open override fun zip(v: Vec4, f: DoubleBinaryOperator): Vec4