Struct Float2TweenJob
Tween job implementation for tweening float2 values.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public struct Float2TweenJob : ITweenJob<float2>, IJob
Properties
jobData
Typed job data used in tween job.
Declaration
public TweenJobData<float2> jobData { readonly get; set; }
Property Value
Type | Description |
---|---|
TweenJobData<float2> |
Methods
Execute()
Perform work on a worker thread.
Declaration
public void Execute()
See Also
Execute()
IsNearlyEqual(float2, float2)
Function used to compare two values when evaluating a tween to determine if they're nearly equal in order to short-circuit the tween.
Declaration
public bool IsNearlyEqual(float2 from, float2 to)
Parameters
Type | Name | Description |
---|---|---|
float2 | from | First value in equality comparison. |
float2 | to | Second value in equality comparison. |
Returns
Type | Description |
---|---|
bool | Returns true if values are nearly equal. |
Lerp(float2, float2, float)
Function used to interpolate between a tween's start value and target value.
Declaration
public float2 Lerp(float2 from, float2 to, float t)
Parameters
Type | Name | Description |
---|---|---|
float2 | from | Tween start value. |
float2 | to | Tween target value. |
float | t | Value between 0-1 used to evaluate the output between the from and to values. |
Returns
Type | Description |
---|---|
float2 | Returns the interpolation from |