ExpressionFunctions.Lerp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Lerp(ScalarNode, ScalarNode, ScalarNode) |
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress. |
| Lerp(Vector2Node, Vector2Node, ScalarNode) |
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress. |
| Lerp(Vector3Node, Vector3Node, ScalarNode) |
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress. |
| Lerp(Vector4Node, Vector4Node, ScalarNode) |
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress. |
Lerp(ScalarNode, ScalarNode, ScalarNode)
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress.
public static CommunityToolkit.WinUI.Animations.Expressions.ScalarNode Lerp(CommunityToolkit.WinUI.Animations.Expressions.ScalarNode val1, CommunityToolkit.WinUI.Animations.Expressions.ScalarNode val2, CommunityToolkit.WinUI.Animations.Expressions.ScalarNode progress);
static member Lerp : CommunityToolkit.WinUI.Animations.Expressions.ScalarNode * CommunityToolkit.WinUI.Animations.Expressions.ScalarNode * CommunityToolkit.WinUI.Animations.Expressions.ScalarNode -> CommunityToolkit.WinUI.Animations.Expressions.ScalarNode
Public Shared Function Lerp (val1 As ScalarNode, val2 As ScalarNode, progress As ScalarNode) As ScalarNode
Parameters
- val1
- ScalarNode
Source value 1.
- val2
- ScalarNode
Source value 2.
- progress
- ScalarNode
A value between 0 and 1.0 indicating the weight of val2.
Returns
ScalarNode.
Applies to
Lerp(Vector2Node, Vector2Node, ScalarNode)
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress.
public static CommunityToolkit.WinUI.Animations.Expressions.Vector2Node Lerp(CommunityToolkit.WinUI.Animations.Expressions.Vector2Node val1, CommunityToolkit.WinUI.Animations.Expressions.Vector2Node val2, CommunityToolkit.WinUI.Animations.Expressions.ScalarNode progress);
static member Lerp : CommunityToolkit.WinUI.Animations.Expressions.Vector2Node * CommunityToolkit.WinUI.Animations.Expressions.Vector2Node * CommunityToolkit.WinUI.Animations.Expressions.ScalarNode -> CommunityToolkit.WinUI.Animations.Expressions.Vector2Node
Public Shared Function Lerp (val1 As Vector2Node, val2 As Vector2Node, progress As ScalarNode) As Vector2Node
Parameters
- val1
- Vector2Node
Source value 1.
- val2
- Vector2Node
Source value 2.
- progress
- ScalarNode
A value between 0 and 1.0 indicating the weight of val2.
Returns
Vector2Node.
Applies to
Lerp(Vector3Node, Vector3Node, ScalarNode)
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress.
public static CommunityToolkit.WinUI.Animations.Expressions.Vector3Node Lerp(CommunityToolkit.WinUI.Animations.Expressions.Vector3Node val1, CommunityToolkit.WinUI.Animations.Expressions.Vector3Node val2, CommunityToolkit.WinUI.Animations.Expressions.ScalarNode progress);
static member Lerp : CommunityToolkit.WinUI.Animations.Expressions.Vector3Node * CommunityToolkit.WinUI.Animations.Expressions.Vector3Node * CommunityToolkit.WinUI.Animations.Expressions.ScalarNode -> CommunityToolkit.WinUI.Animations.Expressions.Vector3Node
Public Shared Function Lerp (val1 As Vector3Node, val2 As Vector3Node, progress As ScalarNode) As Vector3Node
Parameters
- val1
- Vector3Node
Source value 1.
- val2
- Vector3Node
Source value 2.
- progress
- ScalarNode
A value between 0 and 1.0 indicating the weight of val2.
Returns
Vector3Node.
Applies to
Lerp(Vector4Node, Vector4Node, ScalarNode)
Linearly interpolates between two vectors as: Output.x = x1 + (x2-x1)*progress.
public static CommunityToolkit.WinUI.Animations.Expressions.Vector4Node Lerp(CommunityToolkit.WinUI.Animations.Expressions.Vector4Node val1, CommunityToolkit.WinUI.Animations.Expressions.Vector4Node val2, CommunityToolkit.WinUI.Animations.Expressions.ScalarNode progress);
static member Lerp : CommunityToolkit.WinUI.Animations.Expressions.Vector4Node * CommunityToolkit.WinUI.Animations.Expressions.Vector4Node * CommunityToolkit.WinUI.Animations.Expressions.ScalarNode -> CommunityToolkit.WinUI.Animations.Expressions.Vector4Node
Public Shared Function Lerp (val1 As Vector4Node, val2 As Vector4Node, progress As ScalarNode) As Vector4Node
Parameters
- val1
- Vector4Node
Source value 1.
- val2
- Vector4Node
Source value 2.
- progress
- ScalarNode
A value between 0 and 1.0 indicating the weight of val2.
Returns
Vector4Node.