Class Leap::Unity::UnityQuaternionExtension

class Leap.Unity.UnityQuaternionExtension

Unity extentions for Leap Quaternion class.

Public Static Functions

static Quaternion ToQuaternion (this LeapQuaternion q)

Converts a LeapQuaternion object to a UnityEngine.Quaternion object.

Return

The UnityEngine Quaternion object with the same values as the LeapQuaternion.

static LeapQuaternion ToLeapQuaternion (this Quaternion q)

Converts a UnityEngine.Quaternion object to a LeapQuaternion object.

Return

The LeapQuaternion object with the same values as the UnityEngine.Quaternion.