Used to linearly interpolate/extrapolate between From
(when Parameter = 0.0
) and To
(when Parameter = 1.0
). Expects that all arguments are finite.
Returns From*(1 - Parameter) + To*Parameter
.
Verse using statement |
using { /UnrealEngine.com/Temporary/SpatialMath } |
Lerp<public>(From:vector2, To:vector2, Parameter:float)<diverges><reads><dictates>:
vector2
Parameters
Lerp
takes the following parameters:
Name | Type | Description |
---|---|---|
From |
vector2 |
|
To |
vector2 |
|
Parameter |
float |
Attributes and Effects
The following attributes and effects determine how Lerp
behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute | Meaning |
---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
Effect | Meaning |
---|---|
diverges |
Indicates that calls to the function may not complete. |
reads |
This effect indicates that the same inputs to the function may not always produce the same output. The behavior depends on factors external to the specified inputs, such as memory or the containing package version. |
dictates |