Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » SegmentLength
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes the length of a segment.
Syntax
C++
C#
void fil::SegmentLength ( const fil::Segment2D& inSegment, float& outLength )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegment | const Segment2D& | ||
![]() |
outLength | float& |
Examples
![]() |
SegmentLength performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outLength returns 353,553.