Class ScalarLerp
Returns the linear interpolation between two scalars.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Scalar")]
[UnitTitle("Lerp")]
public sealed class ScalarLerp : Lerp<float>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
defaultA
Declaration
protected override float defaultA { get; }
Property Value
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Lerp<System.Single>.defaultA
defaultB
Declaration
protected override float defaultB { get; }
Property Value
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Lerp<System.Single>.defaultB
Methods
Operation(Single, Single, Single)
Declaration
public override float Operation(float a, float b, float t)
Parameters
Type | Name | Description |
---|---|---|
Single | a | |
Single | b | |
Single | t |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Lerp<System.Single>.Operation(System.Single, System.Single, System.Single)