Companion

Properties

Link copied to clipboard
val NaN: Vec2

Vector with all components set to NaN.

Link copied to clipboard

Vector with all components set to negative infinity.

Link copied to clipboard

Vector with all components set to positive infinity.

Link copied to clipboard
val ZERO: Vec2

The zero vector.

Functions

Link copied to clipboard
fun unit(x: Double, y: Double): Vec2

Creates a unit vector from a given x and y coordinate.