overhauls calcPTAMfromKinect