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

AVL.SegmentVector

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SegmentVector
(
	AvlNet.Segment2D inSegment,
	out AvlNet.Vector2D outVector
)

Parameters

Name Type Range Default Description
inSegmentAvlNet.Segment2D
outVectorAvlNet.Vector2D

Examples

SegmentVector performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outVector result shown on the right picture.

See also