/** * graphene_simd4f_zero_zw: * @s: a #graphene_simd4f_t * * Creates a new #graphene_simd4f_t that contains the * same values of the given @s vector, except for the * Z and W components, which are set to 0. * * Returns: the new vector * * Since: 1.0 */ graphene_simd4f_t (graphene_simd4f_zero_zw) (const graphene_simd4f_t s) { return graphene_simd4f_zero_zw (s); }
/** * graphene_vec3_get_xy: * @v: a #graphene_vec3_t * @res: (out caller-allocates): return location for a #graphene_vec2_t * * Creates a #graphene_vec2_t that contains the first and second * components of the given #graphene_vec3_t. * * Since: 1.0 */ void graphene_vec3_get_xy (const graphene_vec3_t *v, graphene_vec2_t *res) { res->value = graphene_simd4f_zero_zw (v->value); }