示例#1
0
void
graphene_matrix_inverse (const graphene_matrix_t *m,
                         graphene_matrix_t       *res)
{
  g_return_if_fail (m != NULL);
  g_return_if_fail (res != NULL);

  graphene_simd4x4f_inverse (&m->value, &res->value);
}
示例#2
0
/**
 * graphene_matrix_inverse:
 * @m: a #graphene_matrix_t
 * @res: (out caller-allocates): return location for the
 *   inverse matrix
 *
 * Inverts the given matrix.
 *
 * Since: 1.0
 */
void
graphene_matrix_inverse (const graphene_matrix_t *m,
                         graphene_matrix_t       *res)
{
  graphene_simd4x4f_inverse (&m->value, &res->value);
}