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




