Back to Aurora Vision Library website
You are here: Start » Function Reference » Profile » Profile Basics » GetProfileValue
GetProfileValue
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Gets a single value from a profile, located at the specified X (real-world) coordinate.
Syntax
C++
C#
void avl::GetProfileValue ( const avl::Profile& inProfile, float inX, bool inSmooth, float& outValue )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inProfile | const Profile& | Input profile | ||
inX | float | X coordinate at which the profile value is calculated | ||
inSmooth | bool | Determines whether an interpolation between two profile elements should be smooth | ||
outValue | float& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty profile on input in GetProfileValue. |
DomainError | X coordinate out of range in GetProfileValue. |