You are here: Start » AVL.NET » AVL.LerpPaths
Linearly interpolates between two paths.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void LerpPaths ( AvlNet.Path inPath0, AvlNet.Path inPath1, float inLambda, AvlNet.Path outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath0 | AvlNet.Path | ||||
inPath1 | AvlNet.Path | First input path. | |||
inLambda | float | <-INF, INF> | 0.5f | Interpolation between the input paths where 0.0 value is equal to inPath0 and 1.0 to inPath1. Default value: 0.5f. | |
outPath | AvlNet.Path | Output path. |
Examples
Remarks
Please note that:
- interpolation begins at inPath0,
- for positive inLambda values interpolation is performed in the direction of inPath1 while for negative - in the direction of a path which is the result of the following operation: (inPath0 - inPath1), in example a path consisting of inPath1 points mirrored by the corresponding inPath0 points.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Numbers of points in paths are not the same in LerpPaths |
DomainError | Open and closed paths on input in LerpPaths |