Vector2

data class Vector2(val x: Float, val y: Float)(source)

Constructors

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

Properties

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

Functions

Link copied to clipboard
fun distanceTo(other: Vector2): Float
Link copied to clipboard
operator fun minus(other: Vector2): Vector2
Link copied to clipboard
operator fun plus(other: Vector2): Vector2
Link copied to clipboard
operator fun times(other: Int): Vector2
Link copied to clipboard
open override fun toString(): String