XR_BIAS to Float Conversion Rules
This section applies only to Windows 7 and later operating systems.
The following code shows how to convert XR_BIAS to float:
float XRtoFloat( UINT XRComponent ) {
// The & 0x3ff shows that only 10 bits contribute to the conversion.
return (float)( (XRComponent & 0x3ff) - 0x180 ) / 510.f;
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for