Vec2

constructor(x: Double, y: Double)


constructor()

Constructs a two-component vector with X and Y both 0.


constructor(vector: Vec2)

Constructs a two-component vector with the X and Y of a specified vector.

Parameters

vector

the vector specifying the components