You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Features » AVL.SegmentLength

AVL.SegmentLength

Computes the length of a segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SegmentLength
(
	AvlNet.Segment2D inSegment,
	out float outLength
)

Parameters

Name Type Range Default Description
inSegmentAvlNet.Segment2D
outLengthfloat

Examples

SegmentLength performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outLength returns 353,553.

See also