Vec4.initFromVec2

Initializes a #graphene_vec4_t using the components of a #graphene_vec2_t and the values of z and w.

class Vec4
initFromVec2
(,
float z
,
float w
)

Parameters

src graphene.vec2.Vec2

a #graphene_vec2_t

z float

the value for the third component of v

w float

the value for the fourth component of v

Return Value

Type: graphene.vec4.Vec4

the initialized vector