Vec2

data class Vec2(val x: Float, val y: Float)

Constructors

Link copied to clipboard
constructor()
constructor(x: Number, y: Number)
constructor(x: Float, y: Float)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
operator fun div(scalar: Number): Vec2
Link copied to clipboard
infix fun dst2To(to: Vec2): Float
Link copied to clipboard
infix fun dstTo(to: Vec2): Float
Link copied to clipboard
operator fun minus(vec: Vec2): Vec2
Link copied to clipboard
fun norm(): Vec2
Link copied to clipboard
operator fun plus(vec: Vec2): Vec2
Link copied to clipboard
fun rotate(degrees: Float): Vec2
Link copied to clipboard
infix fun scl(by: Vec2): Vec2
Link copied to clipboard
operator fun times(scalar: Number): Vec2
Link copied to clipboard
operator fun unaryMinus(): Vec2