Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » SegmentVector
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Returns the vector [x2 - x1, y2 - y1].
Syntax
C++
C#
void fil::SegmentVector ( const fil::Segment2D& inSegment, fil::Vector2D& outVector )
Parameters
Examples
![]() |
![]() |
SegmentVector performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outVector result shown on the right picture.