November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

gvr_quatf

#include <gvr_types.h>

A floating point quaternion, in JPL format.

Summary

We use this simple struct in order not to impose a dependency on a particular math library. The user of this API is free to encapsulate this into any math library they want.

Public attributes

qw
float
qw is the scalar component.
qx
float
qx, qy, qz are the vector components.
qy
float
qz
float

Public attributes

qw

float gvr_quatf::qw

qw is the scalar component.

qx

float gvr_quatf::qx

qx, qy, qz are the vector components.

qy

float gvr_quatf::qy

qz

float gvr_quatf::qz