Function gvr_sys::gvr_get_head_space_from_start_space_rotation [] [src]

pub unsafe extern "C" fn gvr_get_head_space_from_start_space_rotation(
    gvr: *const gvr_context,
    time: gvr_clock_time_point
) -> gvr_mat4f

@deprecated Calls to this method can be safely replaced by calls to gvr_get_head_space_from_start_space_transform. The new API reflects that the call can return a full 6DoF transform when supported by both the host platform and the client application.

Gets the rotation from start space to head space. The head space is a space where the head is at the origin and faces the -Z direction.

@param gvr Pointer to the gvr instance from which to get the pose. @param time The time at which to get the head pose. The time should be in the future. If the time is not in the future, it will be clamped to now. @return A matrix representation of the rotation from start space (the space where the head was last reset) to head space (the space with the head at the origin, and the axes aligned to the view vector).