GradientExtensionsLerp Method |
Lerp between two gradients
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static Gradient Lerp(
this Gradient a,
Gradient b,
float t
)
<ExtensionAttribute>
Public Shared Function Lerp (
a As Gradient,
b As Gradient,
t As Single
) As Gradient
public:
[ExtensionAttribute]
static Gradient^ Lerp(
Gradient^ a,
Gradient^ b,
float t
)
[<ExtensionAttribute>]
static member Lerp :
a : Gradient *
b : Gradient *
t : float32 -> Gradient
Parameters
- a
- Type: Gradient
Base gradient - b
- Type: Gradient
Final gradient - t
- Type: SystemSingle
Lerp amount (0 - 1)
Return Value
Type:
Gradient[Missing <returns> documentation for "M:DigitalRuby.WeatherMaker.GradientExtensions.Lerp(UnityEngine.Gradient,UnityEngine.Gradient,System.Single)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Gradient. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also