/** * graphene_vec2_init_from_float: * @v: a #graphene_vec2_t * @src: (array fixed-size=2): an array of floating point values * with at least two elements * * Initializes @v with the contents of the given array. * * Returns: (transfer none): the initialized vector * * Since: 1.0 */ graphene_vec2_t * graphene_vec2_init_from_float (graphene_vec2_t *v, const float *src) { v->value = graphene_simd4f_init_2f (src); return v; }
/** * graphene_simd4f_init_2f: * @v: (array fixed-size=2): an array of at least 2 floating * point values * * Initializes a #graphene_simd4f_t using an array of 2 floating * point values. * * Returns: the initialized #graphene_simd4f_t * * Since: 1.0 */ graphene_simd4f_t (graphene_simd4f_init_2f) (const float *v) { return graphene_simd4f_init_2f (v); }