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; }
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); }