Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Features » SegmentCenter
Computes the center point of a segment.
Syntax
C++
C#
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inSegment | const Segment2D& | ||
![]() |
outCenterPoint | Point2D& |
Examples
![]() |
SegmentCenter performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.



