示例#1
0
/**
 * graphene_vec4_init_from_float:
 * @v: a #graphene_vec4_t
 * @src: (array fixed-size=4): an array of four floating point values
 *
 * Initializes a #graphene_vec4_t with the values inside the given array.
 *
 * Returns: (transfer none): the initialized vector
 *
 * Since: 1.0
 */
graphene_vec4_t *
graphene_vec4_init_from_float (graphene_vec4_t *v,
                               const float     *src)
{
  v->value = graphene_simd4f_init_4f (src);

  return v;
}
示例#2
0
/**
 * graphene_simd4f_init_4f:
 * @v: (array fixed-size=4): an array of at least 4 floating
 *   point values
 *
 * Initializes a #graphene_simd4f_t using an array of 4 floating
 * point values.
 *
 * Returns: the initialized #graphene_simd4f_t
 *
 * Since: 1.0
 */
graphene_simd4f_t
(graphene_simd4f_init_4f) (const float *v)
{
  return graphene_simd4f_init_4f (v);
}