Matrix.equalFast

bool equalFast(graphene.matrix.Matrix b)

Checks whether the two given #graphene_matrix_t matrices are byte-by-byte equal.

While this function is faster than [graphene.matrix.Matrix.equal], it can also return false negatives, so it should be used in conjuction with either [graphene.matrix.Matrix.equal] or [graphene.matrix.Matrix.near]. For instance:

if (graphene_matrix_equal_fast (a, b))
   {
     // matrices are definitely the same
   }
 else
   {
     if (graphene_matrix_equal (a, b))
       // matrices contain the same values within an epsilon of FLT_EPSILON
     else if (graphene_matrix_near (a, b, 0.0001))
       // matrices contain the same values within an epsilon of 0.0001
     else
       // matrices are not equal
   }

Parameters

ba #graphene_matrix_t

Returns

true if the matrices are equal. and false otherwise