Vec2.initFromFloat

Initializes @v with the contents of the given array.

class Vec2
initFromFloat
(
float[2] src
)

Parameters

src float[2]

an array of floating point values with at least two elements

Return Value

Type: Vec2

the initialized vector

Meta