Class Leap::Unity::UnityVectorExtension

class Leap.Unity.UnityVectorExtension

Unity extentions for Leap Vector class.

Public Static Functions

static Vector3 ToVector3 (this Vector vector)

Converts a Leap Vector object to a UnityEngine Vector3 object.

Does not convert to the Unity left-handed coordinate system or scale the coordinates from millimeters to meters.

Return

The Unity Vector3 object with the same coordinate values as the Leap.Vector.

static Vector4 ToVector4 (this Vector vector)

Converts a Leap Vector object to a UnityEngine Vector4 object.

Does not convert to the Unity left-handed coordinate system or scale the coordinates from millimeters to meters.

Return

The Unity Vector4 object with the same coordinate values as the Leap.Vector.

static Vector ToVector (this Vector3 vector)

Converts a UnityEngine Vector3 object to a Leap Vector object.

Does not convert to the Unity left-handed coordinate system or scale the coordinates from millimeters to meters.

Return

The Leap Vector object with the same coordinate values as the UnityEngine.Vector.