API reference
API reference
Select your platform
No SDKs available
No versions available

OVRExtensions Class

Miscellaneous extension methods that any script can use.

Overview

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
( this OVRPose trackingSpacePose )
Converts the given pose from tracking-space to world-space.
static OVRPose
ToWorldSpacePose
( this OVRPose trackingSpacePose,
Camera mainCamera )
Converts the given pose from tracking-space to world-space.
static OVRPose
ToHeadSpacePose
( this OVRPose trackingSpacePose )
Converts the given pose from tracking-space to head-space.
static OVRPose
ToHeadSpacePose
( this Transform transform,
Camera camera )
Converts the given world-space transform to an OVRPose in head space.
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 )
ToFrustum
( this OVRPlugin.Frustumf f )
static Color
FromColorf
( this OVRPlugin.Colorf c )
static OVRPlugin.Colorf
ToColorf
( this Color c )
static Vector2
FromSizef
( this OVRPlugin.Sizef v )
static OVRPlugin.Sizef
ToSizef
( this Vector2 v )
static Vector2
FromVector2f
( this OVRPlugin.Vector2f v )
static Vector2
FromFlippedXVector2f
( this OVRPlugin.Vector2f v )
static OVRPlugin.Vector2f
ToVector2f
( this Vector2 v )
static Vector3
FromSize3f
( this OVRPlugin.Size3f v )
static OVRPlugin.Size3f
ToSize3f
( this Vector3 v )
static Vector3
FromVector3f
( this OVRPlugin.Vector3f v )
static Vector3
FromFlippedXVector3f
( this OVRPlugin.Vector3f v )
static Vector3
FromFlippedZVector3f
( this OVRPlugin.Vector3f v )
static OVRPlugin.Vector3f
ToVector3f
( this Vector3 v )
static OVRPlugin.Vector3f
ToFlippedXVector3f
( this Vector3 v )
static OVRPlugin.Vector3f
ToFlippedZVector3f
( this Vector3 v )
static Vector4
FromVector4f
( this OVRPlugin.Vector4f v )
static OVRPlugin.Vector4f
ToVector4f
( this Vector4 v )
static Quaternion
FromQuatf
( this OVRPlugin.Quatf q )
static Quaternion
FromFlippedXQuatf
( this OVRPlugin.Quatf q )
static Quaternion
FromFlippedZQuatf
( this OVRPlugin.Quatf q )
static OVRPlugin.Quatf
ToQuatf
( this Quaternion q )
static OVRPlugin.Quatf
ToFlippedXQuatf
( this Quaternion q )
static OVRPlugin.Quatf
ToFlippedZQuatf
( this Quaternion q )
static OVR.OpenVR.HmdMatrix34_t
ConvertToHMDMatrix34
( this Matrix4x4 m )
static Transform
FindChildRecursive
( this Transform parent,
string name )
static bool
Equals
( this Gradient gradient,
Gradient otherGradient )
static void
CopyFrom
( this Gradient gradient,
Gradient otherGradient )

Details

Static Member Functions

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
( this OVRPose trackingSpacePose )
Converts the given pose from tracking-space to world-space.
static OVRPose OVRExtensions.ToWorldSpacePose
( this OVRPose trackingSpacePose,
Camera mainCamera )
Converts the given pose from tracking-space to world-space.
static OVRPose OVRExtensions.ToHeadSpacePose
( this OVRPose trackingSpacePose )
Converts the given pose from tracking-space to head-space.
static OVRPose OVRExtensions.ToHeadSpacePose
( this Transform transform,
Camera camera )
Converts the given world-space transform to an OVRPose in head space.
static OVRPose OVRExtensions.ToOVRPose
( this Transform t,
bool isLocal )
No description available.
static void OVRExtensions.FromOVRPose
( this Transform t,
OVRPose pose,
bool isLocal )
No description available.
static OVRPose OVRExtensions.ToOVRPose
( this OVRPlugin.Posef p )
No description available.
static OVRTracker.Frustum OVRExtensions.ToFrustum
( this OVRPlugin.Frustumf f )
No description available.
static Color OVRExtensions.FromColorf
( this OVRPlugin.Colorf c )
No description available.
static OVRPlugin.Colorf OVRExtensions.ToColorf
( this Color c )
No description available.
static Vector2 OVRExtensions.FromSizef
( this OVRPlugin.Sizef v )
No description available.
static OVRPlugin.Sizef OVRExtensions.ToSizef
( this Vector2 v )
No description available.
static Vector2 OVRExtensions.FromVector2f
( this OVRPlugin.Vector2f v )
No description available.
static Vector2 OVRExtensions.FromFlippedXVector2f
( this OVRPlugin.Vector2f v )
No description available.
static OVRPlugin.Vector2f OVRExtensions.ToVector2f
( this Vector2 v )
No description available.
static Vector3 OVRExtensions.FromSize3f
( this OVRPlugin.Size3f v )
No description available.
static OVRPlugin.Size3f OVRExtensions.ToSize3f
( this Vector3 v )
No description available.
static Vector3 OVRExtensions.FromVector3f
( this OVRPlugin.Vector3f v )
No description available.
static Vector3 OVRExtensions.FromFlippedXVector3f
( this OVRPlugin.Vector3f v )
No description available.
static Vector3 OVRExtensions.FromFlippedZVector3f
( this OVRPlugin.Vector3f v )
No description available.
static OVRPlugin.Vector3f OVRExtensions.ToVector3f
( this Vector3 v )
No description available.
static OVRPlugin.Vector3f OVRExtensions.ToFlippedXVector3f
( this Vector3 v )
No description available.
static OVRPlugin.Vector3f OVRExtensions.ToFlippedZVector3f
( this Vector3 v )
No description available.
static Vector4 OVRExtensions.FromVector4f
( this OVRPlugin.Vector4f v )
No description available.
static OVRPlugin.Vector4f OVRExtensions.ToVector4f
( this Vector4 v )
No description available.
static Quaternion OVRExtensions.FromQuatf
( this OVRPlugin.Quatf q )
No description available.
static Quaternion OVRExtensions.FromFlippedXQuatf
( this OVRPlugin.Quatf q )
No description available.
static Quaternion OVRExtensions.FromFlippedZQuatf
( this OVRPlugin.Quatf q )
No description available.
static OVRPlugin.Quatf OVRExtensions.ToQuatf
( this Quaternion q )
No description available.
static OVRPlugin.Quatf OVRExtensions.ToFlippedXQuatf
( this Quaternion q )
No description available.
static OVRPlugin.Quatf OVRExtensions.ToFlippedZQuatf
( this Quaternion q )
No description available.
static OVR.OpenVR.HmdMatrix34_t OVRExtensions.ConvertToHMDMatrix34
( this Matrix4x4 m )
No description available.
static Transform OVRExtensions.FindChildRecursive
( this Transform parent,
string name )
No description available.
static bool OVRExtensions.Equals
( this Gradient gradient,
Gradient otherGradient )
No description available.
static void OVRExtensions.CopyFrom
( this Gradient gradient,
Gradient otherGradient )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon