You are here: Start » AVL.NET » AVL.GetProfileElement_Interpolated Method

AVL.GetProfileElement_Interpolated Method

Returns linear interpolation between two consecutive values from a profile.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void GetProfileElement_Interpolated(
	AvlNet.Profile inProfile,
	bool inCyclic,
	bool inSmooth,
	float inIndex,
	out float outValue
)

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inCyclicbool
inSmoothbool
inIndexfloat<-INF, INF>0.0fDefault value: 0.0f.
outValuefloat

Errors

Error type Description
DomainError Empty profile on input in GetProfileElement_Interpolated.
DomainError Index out of range in GetProfileElement_Interpolated.

See also