示例#1
0
/**
 * graphene_vec3_init_from_float:
 * @v: a #graphene_vec3_t
 * @src: (array fixed-size=3): an array of 3 floating point values
 *
 * Initializes a #graphene_vec3_t with the values from an array.
 *
 * Returns: (transfer none): the initialized vector
 *
 * Since: 1.0
 */
graphene_vec3_t *
graphene_vec3_init_from_float (graphene_vec3_t *v,
                               const float     *src)
{
  v->value = graphene_simd4f_init_3f (src);

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