equal_fast


Description:

[ Version ( since = "1.10" ) ]
public bool equal_fast (Matrix b)

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

While this function is faster than equal, it can also return false negatives, so it should be used in conjuction with either equal or 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:

this

a Matrix

b

a Matrix

Returns:

`true` if the matrices are equal. and `false` otherwise