Vec2.initFromFloat

graphene.vec2.Vec2 initFromFloat(float[] src)

Initializes v with the contents of the given array.

Parameters

srcan array of floating point values with at least two elements

Returns

the initialized vector