You are here: Start » AVL.NET » AVL.GetProfileElement_Interpolated
Returns linear interpolation between two consecutive values from a profile.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void GetProfileElement_Interpolated ( AvlNet.Profile inProfile, bool inCyclic, bool inSmooth, float inIndex, out float outValue )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inProfile | AvlNet.Profile | Input profile. | |||
inCyclic | bool | ||||
inSmooth | bool | Determines whether an interpolation between two profile elements should be smooth. | |||
inIndex | float | <-INF, INF> | 0.0f | Default value: 0.0f. | |
outValue | float |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty profile on input in GetProfileElement_Interpolated. |
DomainError | Index out of range in GetProfileElement_Interpolated. |