Back to Aurora Vision Library website

You are here: Start » Function Reference » Profile » Profile Basics » GetProfileElement_Interpolated

GetProfileElement_Interpolated


Header: AVL.h
Namespace: avl
Module: FoundationPro

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

Syntax

C++
C#
 
void avl::GetProfileElement_Interpolated
(
	const avl::Profile& inProfile,
	bool inCyclic,
	bool inSmooth,
	float inIndex,
	float& outValue
)

Parameters

Name Type Range Default Description
Input value inProfile const Profile& Input profile
Input value inCyclic bool
Input value inSmooth bool Determines whether an interpolation between two profile elements should be smooth
Input value inIndex float - - 0.0f
Output value 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.