`WVR_EXPORT WVR_Matrix4f_t WVR_GetTransformFromEyeToHead(WVR_Eye eye, WVR_NumDoF dof = WVR_NumDoF_6DoF)`

Function to return the transform from the eye space to the head space.

Eye space is respective to the left or right eye. By applying the returned transform matrix, it adjusts the View matrix for each eye, and therefore creates stereo disparity. Instead of the Model View Projection model, the model is Model View Eye Projection. Usually, View and Eye are multiplied together to get the View in your app.

This matrix incorporates the user’s interpupillary distance (IPD).

Return
The transform between the view space and eye space.
Version
API Level 1
Parameters
• `eye`: Determines which eye the function should return the eye matrix for.
• `dof`: Specify the DoF of the current content. A 6DoF transform considers the eye to head depth but 3DoF does not.

## Struct and enumeration¶

struct `WVR_Matrix4f`

The basic matrix (4x4 floats) struct to be used in pose.

Public Members

float `m`

Matrix form (4X4) to represent rotation and position of pose data.

## How to use¶

Here is an example for the function:

```void exampleFun() {

Matrix4 transLeft = Matrix4(
matLeft.m, matLeft.m, matLeft.m, matLeft.m,
matLeft.m, matLeft.m, matLeft.m, matLeft.m,
matLeft.m, matLeft.m, matLeft.m, matLeft.m,
matLeft.m, matLeft.m, matLeft.m, matLeft.m
);
Matrix4 transRight = Matrix4(
matRight.m, matRight.m, matRight.m, matRight.m,
matRight.m, matRight.m, matRight.m, matRight.m,
matRight.m, matRight.m, matRight.m, matRight.m,
matRight.m, matRight.m, matRight.m, matRight.m
);