Q3Tracker_GetOrientation
You can use theQ3Tracker_GetOrientationfunction to get the current orientation of a tracker.
TQ3Status Q3Tracker_GetOrientation ( TQ3TrackerObject trackerObject, TQ3Quaternion *orientation, TQ3Quaternion *delta, TQ3Boolean *changed, unsigned long *serialNumber);
trackerObject- A tracker object.
orientation- On exit, the current orientation of the specified tracker.
delta- On exit, the change in orientation since the last call to
Q3Tracker_GetOrientation.changed- On exit, a Boolean value that indicates whether the
orientationordeltaparameters was changed (kQ3True) or not (kQ3False).serialNumber- On entry, a tracker serial number, or
NULL. On output, the current tracker serial number.DESCRIPTION
TheQ3Tracker_GetOrientationfunction returns, in theorientationparameter, the current orientation of the tracker specified by thetrackerObjectparameter. In addition, it may return, in thedeltaparameter, the relative change in orientation since the previous call toQ3Tracker_GetOrientation.On entry, if the value of
deltaisNULL, the relative contribution is combined into the reported orientation. If the value ofdeltais notNULL, thendeltais set to the relative motion that has been accumulated since the previous call toQ3Tracker_GetOrientation. In either case, the orientation accumulator is set to identity by this function.If the value of the
serialNumberparameter isNULL,Q3Tracker_GetOrientationfills in theorientationanddeltaparameters and returns the valuekQ3Truein thechangedparameter. Otherwise, the value specified in theserialNumberparameter is compared with the tracker's current serial number. If the two serial numbers are identical,Q3Tracker_GetOrientationleaves the two coordinate parameters and theserialNumberparameter unchanged and returns the valuekQ3Falsein thechangedparameter. If the two serial number differ,Q3Tracker_GetOrientationfills in the two coordinate parameters, updates theserialNumberparameter, and returns the valuekQ3Truein thechangedparameter.If the specified tracker is inactive, then the
orientationparameter is set to identity, thedeltaparameter is set to identity if it is non-NULL, and thechangedparameter is set tokQ3Falseif it is non-NULL.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help