示例#1
0
        public bool ReadPosition(ref HeadPoseData output)
        {
            var headpose = new InternalHeadPoseData();

            if (!ReadTrackIRData(ref headpose))
                return false;

            DecodeTrackIRIntoDegrees(headpose);

            output = new HeadPoseData { Yaw = headpose.Yaw, Pitch = headpose.Pitch, Roll = headpose.Roll, X = headpose.X, Y = headpose.Y, Z = headpose.Z };

            return true;
        }
示例#2
0
        public bool ReadPosition(ref HeadPoseData output)
        {
            var headpose = new InternalHeadPoseData();

            if (!ReadTrackIRData(ref headpose))
            {
                return(false);
            }

            DecodeTrackIRIntoDegrees(headpose);

            output = new HeadPoseData {
                Yaw = headpose.Yaw, Pitch = headpose.Pitch, Roll = headpose.Roll, X = headpose.X, Y = headpose.Y, Z = headpose.Z
            };

            return(true);
        }