OSVR
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | List of all members
Gestures.GTransform Class Reference

Data class to contain all necessary information related to a controller transform More...

Public Member Functions

 GTransform (Vector3 pos, Quaternion quat, Vector3 vel, float t)
 Create a GTransform objet with the specified position, quaternion, velocity, and time data points. More...
 
GTransform Copy ()
 Create a copy of the GTransform instance More...
 

Public Attributes

Vector3 position
 The position vector generated by the IController More...
 
Quaternion rotation
 The rotation Quaternion generated by the IController More...
 
Vector3 velocity
 The velocity vector generated by the IController More...
 
float time
 The current time at which the GTransform was generated More...
 

Detailed Description

Data class to contain all necessary information related to a controller transform

Constructor & Destructor Documentation

Gestures.GTransform.GTransform ( Vector3  pos,
Quaternion  quat,
Vector3  vel,
float  t 
)
inline

Create a GTransform objet with the specified position, quaternion, velocity, and time data points.

Parameters
posThe position Vector3 generated by the IController
quatThe rotation quaternion generated by the IController
velThe velocity Vector3 generated by the IController
tThe current time as determined by the IController

Member Function Documentation

GTransform Gestures.GTransform.Copy ( )
inline

Create a copy of the GTransform instance

Returns
Return new GTransform with the same data as the object this method was called on.

Member Data Documentation

Vector3 Gestures.GTransform.position

The position vector generated by the IController

Quaternion Gestures.GTransform.rotation

The rotation Quaternion generated by the IController

float Gestures.GTransform.time

The current time at which the GTransform was generated

<remark> Best practice is using Time.time, or some time from an independent epoch. </remark>

Vector3 Gestures.GTransform.velocity

The velocity vector generated by the IController


The documentation for this class was generated from the following file: