Class QuaternionTweenableVariable
Bindable variable that can tween over time towards a target Quaternion value. Uses an synchronous implementation so the tween does not use the job system.
Inheritance
QuaternionTweenableVariable
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.Primitives
Syntax
public class QuaternionTweenableVariable : TweenableVariableSynchronousBase<Quaternion>, IReadOnlyBindableVariable<Quaternion>Properties
angleEqualityThreshold
Angle threshold in degrees, under which two quaternions are considered equal.
Declaration
public float angleEqualityThreshold { get; set; }Property Value
| Type | Description | 
|---|---|
| Single | 
Methods
IsNearlyEqual(Quaternion, Quaternion)
Evaluates if the value is nearly equal to target.
Declaration
protected override bool IsNearlyEqual(Quaternion startValue, Quaternion targetValue)Parameters
| Type | Name | Description | 
|---|---|---|
| Quaternion | startValue | |
| Quaternion | targetValue | 
Returns
| Type | Description | 
|---|---|
| Boolean | Returns true if the values are nearly equal. | 
Overrides
UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.TweenableVariableSynchronousBase<UnityEngine.Quaternion>.IsNearlyEqual(UnityEngine.Quaternion, UnityEngine.Quaternion)
Lerp(Quaternion, Quaternion, Single)
Function used to interpolate between a tween's start value and target value.
Declaration
protected override Quaternion Lerp(Quaternion from, Quaternion to, float t)Parameters
| Type | Name | Description | 
|---|---|---|
| Quaternion | from | |
| Quaternion | to | |
| Single | t | Value between 0-1 used to evaluate the output between the from and to values. | 
Returns
| Type | Description | 
|---|---|
| Quaternion | Returns the interpolation from  | 
Overrides
UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.TweenableVariableSynchronousBase<UnityEngine.Quaternion>.Lerp(UnityEngine.Quaternion, UnityEngine.Quaternion, System.Single)