You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Features » 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 | |
---|---|---|---|---|---|
![]() | inSegment | AvlNet.Segment2D | |||
![]() | outVector | AvlNet.Vector2D |
Examples
![]() |
![]() |
SegmentVector performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outVector result shown on the right picture.