init


Description:

[ Version ( since = "1.0" ) ]
public unowned Vec2? init (float x, float y)

Initializes a Vec2 using the given values.

This function can be called multiple times.

Parameters:

this

a Vec2

x

the X field of the vector

y

the Y field of the vector

Returns:

the initialized vector