Log in or register to post comments

SampleMath not working

November 4, 2016 - 1:49pm #1

Hi, sorry if this is a stupid question but I' mew to Vuforia.

I'm trying to get the inverse of the model view matrix, as per this example:

const QCAR::TrackableResult* result = state.getTrackableResult(tIdx);

const QCAR::Trackable& trackable = result->getTrackable();

QCAR::Matrix44F modelViewMatrix = QCAR::Tool::convertPose2GLMatrix(result->getPose());

QCAR::Matrix44F inverseMV = SampleMath::Matrix44FInverse(modelViewMatrix);

QCAR::Matrix44F invTranspMV = SampleMath::Matrix44FTranspose(inverseMV);

SampleMath is not found, and apparently not included in the iOS samples at all. It is included in the android samples as a .java file. Am I just going to have to recode it as .h and .m files, or is there a place where I can actually find the iOS version?


Log in or register to post comments