init

fun init(x: Float, y: Float): Vec2

Initializes a #graphene_vec2_t using the given values.

This function can be called multiple times.

Return

the initialized vector

Since

1.0

Parameters

x

the X field of the vector

y

the Y field of the vector