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
BindableVariableBase<Quaternion>
    BindableVariable<Quaternion>
    
    
    QuaternionTweenableVariable
  Implements
IReadOnlyBindableVariable<Quaternion>
  Inherited Members
      BindableVariable<Quaternion>.ValueEquals(Quaternion)
    
    
      BindableVariableBase<Quaternion>.Value
    
    
      BindableVariableBase<Quaternion>.BindingCount
    
    
      BindableVariableBase<Quaternion>.SetValueWithoutNotify(Quaternion)
    
    
    
    
    
      BindableVariableBase<Quaternion>.BroadcastValue()
    
    
    
    
    
    
    
    
    
    
  Namespace: UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.Primitives
Assembly: Unity.XR.Interaction.Toolkit.dll
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 | 
|---|---|
| float | 
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 | First value in equality comparison.  | 
      
| Quaternion | targetValue | Second value in equality comparison.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | Returns true if the values are nearly equal.  | 
      
Overrides
Lerp(Quaternion, Quaternion, float)
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 | Tween start value.  | 
      
| Quaternion | to | Tween target value.  | 
      
| float | 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
Implements
      Unity.XR.CoreUtils.Bindings.Variables.IReadOnlyBindableVariable<T>