Unity 1.26 Reference Guide

OVRExtensions Class Reference

Miscellaneous extension methods that any script can use.

Static Public Member Functions

static OVRPose
ToTrackingSpacePose ( this Transform transform, Camera camera )
Converts the given world-space transform to an OVRPose in tracking space.
static OVRPose
ToWorldSpacePose ( OVRPose trackingSpacePose )
Converts the given pose from tracking-space to world-space.
static OVRPose
ToHeadSpacePose ( this Transform transform, Camera camera )
Converts the given world-space transform to an OVRPose in head space.

Object Data

static OVRPose
ToOVRPose ( this Transform t, bool isLocal )
static void
FromOVRPose ( this Transform t, OVRPose pose, bool isLocal )
static OVRPose
ToOVRPose ( this OVRPlugin.Posef p )
static OVRTracker.Frustum
ToFrustum ( this OVRPlugin.Frustumf f )
static Color
FromColorf ( this OVRPlugin.Colorf c )
static OVRPlugin.Colorf
ToColorf ( this Color c )
static Vector3
FromVector3f ( this OVRPlugin.Vector3f v )
static Vector3
FromFlippedZVector3f ( this OVRPlugin.Vector3f v )
static OVRPlugin.Vector3f
ToVector3f ( this Vector3 v )
static OVRPlugin.Vector3f
ToFlippedZVector3f ( this Vector3 v )
static Quaternion
FromQuatf ( this OVRPlugin.Quatf q )
static Quaternion
FromFlippedZQuatf ( this OVRPlugin.Quatf q )
static OVRPlugin.Quatf
ToQuatf ( this Quaternion q )
static OVRPlugin.Quatf
ToFlippedZQuatf ( this Quaternion q )

Static Member Function Documentation

static OVRPose OVRExtensions.ToTrackingSpacePose ( this Transform transform, Camera camera )
Converts the given world-space transform to an OVRPose in tracking space.
static OVRPose OVRExtensions.ToWorldSpacePose ( OVRPose trackingSpacePose )
Converts the given pose from tracking-space to world-space.
static OVRPose OVRExtensions.ToHeadSpacePose ( this Transform transform, Camera camera )
Converts the given world-space transform to an OVRPose in head space.

Object Data Documentation

static OVRPose OVRExtensions.ToOVRPose ( this Transform t, bool isLocal )
static void OVRExtensions.FromOVRPose ( this Transform t, OVRPose pose, bool isLocal )
static OVRPose OVRExtensions.ToOVRPose ( this OVRPlugin.Posef p )
static OVRTracker.Frustum OVRExtensions.ToFrustum ( this OVRPlugin.Frustumf f )
static Color OVRExtensions.FromColorf ( this OVRPlugin.Colorf c )
static OVRPlugin.Colorf OVRExtensions.ToColorf ( this Color c )
static Vector3 OVRExtensions.FromVector3f ( this OVRPlugin.Vector3f v )
static Vector3 OVRExtensions.FromFlippedZVector3f ( this OVRPlugin.Vector3f v )
static OVRPlugin.Vector3f OVRExtensions.ToVector3f ( this Vector3 v )
static OVRPlugin.Vector3f OVRExtensions.ToFlippedZVector3f ( this Vector3 v )
static Quaternion OVRExtensions.FromQuatf ( this OVRPlugin.Quatf q )
static Quaternion OVRExtensions.FromFlippedZQuatf ( this OVRPlugin.Quatf q )
static OVRPlugin.Quatf OVRExtensions.ToQuatf ( this Quaternion q )
static OVRPlugin.Quatf OVRExtensions.ToFlippedZQuatf ( this Quaternion q )
The documentation for this class was generated from the following file: Oculus/VR/Scripts/OVRCommon.cs