Vec2.init

Initializes a #graphene_vec2_t using the given values.

This function can be called multiple times.

class Vec2
init
(
float x
,
float y
)

Parameters

x float

the X field of the vector

y float

the Y field of the vector

Return Value

Type: Vec2

the initialized vector

Meta