Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » SegmentVector

SegmentVector


Header: AVL.h
Namespace: avl
Module: FoundationLite

Returns the vector [x2 - x1, y2 - y1].

Syntax

C++
C#
 
void avl::SegmentVector
(
	const avl::Segment2D& inSegment,
	avl::Vector2D& outVector
)

Parameters

Name Type Default Description
Input value inSegment const Segment2D&
Output value 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.