Vec2.initFromFloat

Initializes v with the contents of the given array.

class Vec2
initFromFloat
(
float[] src
)

Parameters

src float[]

an array of floating point values with at least two elements

Return Value

Type: graphene.vec2.Vec2

the initialized vector