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

AVL.GetProfileValue

Gets a single value from a profile, located at the specified X (real-world) coordinate.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void GetProfileValue
(
	AvlNet.Profile inProfile,
	float inX,
	bool inSmooth,
	out float outValue
)

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inXfloatX coordinate at which the profile value is calculated.
inSmoothboolDetermines whether an interpolation between two profile elements should be smooth.
outValuefloat

Errors

List of possible exceptions:

Error type Description
DomainError Empty profile on input in GetProfileValue.
DomainError X coordinate out of range in GetProfileValue.

See also