You are here: Start » AVL.NET » AVL.GetProfileValue

AVL.GetProfileValue

Gets a single value from a profile, located at the specified X coordinate.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inProfileAvlNet.ProfileInput profile.
inXintX 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