Vec4.initFromVec3

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

class Vec4
initFromVec3

Parameters

src graphene.vec3.Vec3

a #graphene_vec3_t

w float

the value for the fourth component of v

Return Value

Type: graphene.vec4.Vec4

the initialized vector