You are here: Start » AVL.NET » AVL.SegmentCenter Method

AVL.SegmentCenter Method

Computes the center point of a segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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