I am developing one application using http://structure.io/. In that application when scanning object will complete 360 degree rotation then it will complete scanning..
From scanner we are getting starting point and ending point as GLKMatrix4. We want to check if angle between starting and ending point. We are using below code but it's not the right ways to do it . Can anyone know how to do it..I am very new to opengles?
case ScannerStateScanning:
{
// First try to estimate the 3D pose of the new frame.
NSError* trackingError = nil;
NSString *currentPoseStringMatrix = NSStringFromGLKMatrix4([self lastFrameCameraPose]);
NSString *initialPoseStringMatrix = NSStringFromGLKMatrix4([self initialCameraPose]);
if ([currentPoseStringMatrix isEqualToString:initialPoseStringMatrix]) {
// stop scanning
}