Vec2

data class Vec2(val x: Double, val y: Double) : Vec<Vec2> (source)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
open fun abs(): Vec2
Link copied to clipboard
open override fun add(n: Double): Vec2
open override fun add(v: Vec2): Vec2
fun add(x: Double, y: Double): Vec2
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): Vec2
open fun clamp(min: Vec2, max: Vec2): Vec2
Link copied to clipboard
open operator override fun compareTo(other: Vec2): Int
Link copied to clipboard
open override fun dim(): Int
Link copied to clipboard
open operator fun div(k: Double): Vec2
open operator override fun div(v: Vec2): Vec2
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): Vec2
Link copied to clipboard
open override fun mul(k: Double): Vec2
open override fun mul(v: Vec2): Vec2
Link copied to clipboard
open override fun negate(): Vec2
Link copied to clipboard
open fun norm(): Vec2
Link copied to clipboard
open override fun nth(idx: Int): Double
Link copied to clipboard
fun polar2(): Polar2
Link copied to clipboard
open fun pseudoNorm(): Vec2
Link copied to clipboard
open override fun reduce(f: DoubleBinaryOperator): Double
open override fun reduce(f: DoubleBinaryOperator, init: Double): Double
Link copied to clipboard
fun rotate(radians: Double): Vec2
Link copied to clipboard
open override fun sub(n: Double): Vec2
open override fun sub(v: Vec2): Vec2
fun sub(x: Double, y: Double): Vec2
Link copied to clipboard
fun swap(): Vec2
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
fun vec3(z: Double): Vec3
Link copied to clipboard
fun vec4(v: Vec2): Vec4
fun vec4(z: Double, w: Double): Vec4
Link copied to clipboard
open override fun zip(v: Vec2, f: DoubleBinaryOperator): Vec2