You are here: Start » AVL.NET » Function Reference » Path » Path Basics » AVL.GetPathSegment

AVL.GetPathSegment

Returns the selected segment of a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void GetPathSegment
(
	AvlNet.Path inPath,
	int inIndex,
	bool inInverse,
	out AvlNet.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inIndexint<0, INF>
inInverseboolReversed order of segments.
outSegmentAvlNet.Segment2D

Errors

List of possible exceptions:

Error type Description
DomainError Empty path in GetPathSegment.
DomainError Incorrect segment index in GetPathSegment.

See also