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

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
inSegmentAvlNet.Segment2D
outCenterPointAvlNet.Point2D

Examples

SegmentCenter performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.

See also