Vec4.initFromVec3

graphene.vec4.Vec4 initFromVec3(graphene.vec3.Vec3 src, float w)

Initializes a #graphene_vec4_t using the components of a #graphene_vec3_t and the value of w.

Parameters

srca #graphene_vec3_t
wthe value for the fourth component of v

Returns

the initialized vector