/** * graphene_vec4_init_from_vec3: * @v: a #graphene_vec4_t * @src: a #graphene_vec3_t * @w: the value for the fourth component of @v * * Initializes a #graphene_vec4_t using the components of a * #graphene_vec3_t and the value of @w. * * Returns: (transfer none): the initialized vector * * Since: 1.0 */ graphene_vec4_t * graphene_vec4_init_from_vec3 (graphene_vec4_t *v, const graphene_vec3_t *src, float w) { v->value = graphene_simd4f_merge_w (src->value, w); return v; }
/** * graphene_simd4f_merge_w: * @s: a #graphene_simd4f_t * @v: the new value of the W component * * Creates a new #graphene_simd4f_t that contains the * same values of the given @s vector, except for the * W component, which is set to @v. * * Returns: the new vector * * Since: 1.0 */ graphene_simd4f_t (graphene_simd4f_merge_w) (const graphene_simd4f_t s, float v) { return graphene_simd4f_merge_w (s, v); }