Esempio n. 1
0
/**
 * graphene_simd4f_dup_3f:
 * @s: a #graphene_simd4f_t
 * @v: (out) (array fixed-size=3): return location for an
 *   array of at least 3 floating point values
 *
 * Copies the contents of a #graphene_simd4f_t into an
 * array of floating points.
 *
 * Since: 1.0
 */
void
(graphene_simd4f_dup_3f) (const graphene_simd4f_t  s,
                          float                   *v)
{
  graphene_simd4f_dup_3f (s, v);
}
Esempio n. 2
0
/**
 * graphene_vec3_to_float:
 * @v: a #graphene_vec3_t
 * @dest: (out caller-allocates) (array fixed-size=3): return location for
 *   an array of floating point values
 *
 * Copies the components of a #graphene_vec3_t into the given array.
 *
 * Since: 1.0
 */
void
graphene_vec3_to_float (const graphene_vec3_t *v,
                        float                 *dest)
{
  graphene_simd4f_dup_3f (v->value, dest);
}