You are here: Start » AVL.NET » Function Reference » Profile » Profile Basics » AVL.GetProfileElement_Interpolated

AVL.GetProfileElement_Interpolated

Gets a single value from a profile, interpolated at any point.

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
inProfileAvlNet.ProfileInput profile.
inCyclicbool
inSmoothboolDetermines whether an interpolation between two profile elements should be smooth.
inIndexfloat<-INF, INF>0.0fDefault value: 0.0f.
outValuefloat

Errors

List of possible exceptions:

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

See also