glkit - Comparing GLKMatrix4 -
how compare 2 glkmatrix4, or @ least check if on identity matrix?
a cursory search of glkmatrix4.h shows no util function, , feeling silly checking every field manually this:
static bool glkmatrix4equaltomatrix4(glkmatrix4 a, glkmatrix4 b) { return a.m00 == b.m00 && a.m01 == b.m01 && a.m02 == b.m02 && a.m03 == b.m03 && a.m10 == b.m10 && a.m11 == b.m11 && a.m12 == b.m12 && a.m13 == b.m13 && a.m20 == b.m20 && a.m21 == b.m21 && a.m22 == b.m22 && a.m23 == b.m23 && a.m30 == b.m30 && a.m31 == b.m31 && a.m32 == b.m32 && a.m33 == b.m33; }
you can transform string , compare using function nsstringfromglkmatrix4
Comments
Post a Comment