You are here: Start » AVL.NET » AVL.SegmentCenter
Computes the center point of a segment.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void SegmentCenter ( AvlNet.Segment2D inSegment, out AvlNet.Point2D outCenterPoint )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inSegment | AvlNet.Segment2D | |||
![]() | outCenterPoint | AvlNet.Point2D |
Examples
![]() |
SegmentCenter performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.