Class Lerp<T>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[Obsolete("Use Mathf or Vector Lerp instead")]
public abstract class Lerp<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Type Parameters
Name | Description |
---|---|
T |
Properties
a
The first value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
b
The second value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
defaultA
Declaration
[DoNotSerialize]
protected virtual T defaultA { get; }
Property Value
Type | Description |
---|---|
T |
defaultB
Declaration
[DoNotSerialize]
protected virtual T defaultB { get; }
Property Value
Type | Description |
---|---|
T |
interpolation
The linear interpolation between A and B at T.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, primary = true)]
public ValueOutput interpolation { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
t
The interpolation value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput t { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Operation(T, T, Single)
Declaration
public abstract T Operation(T a, T b, float t)
Parameters
Type | Name | Description |
---|---|---|
T | a | |
T | b | |
Single | t |
Returns
Type | Description |
---|---|
T |