WVR_GetDegreeOfFreedom¶
-
WVR_EXPORT WVR_NumDoF WVR_GetDegreeOfFreedom(WVR_DeviceType type)
Function to get the Degrees of Freedom (DoF) of the device’s pose.
- Return
- WVR_NumDoF_3DoF means the device provides a 3 DoF pose (rotation only), WVR_NumDoF_6DoF means the device provides 6 DoF pose (rotation and position). (refer to WVR_NumDoF)
- Version
- API Level 1
- Parameters
type
: Indicates what device type. (refer to WVR_DeviceType)
How to use¶
Here is an example for the function:
#include <wvr/wvr_device.h>
WVR_NumDoF numDof;
// Get the DoF of the HMD pose
numDof = WVR_GetDegreeOfFreedom(WVR_DeviceType_HMD);