Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Basics » CreateSegment

CreateSegment


Produces a segment of given parameters.

Syntax

C++
C#
 
void avl::CreateSegment
(
	const avl::Point2D& inPoint,
	atl::real inPointAnchor,
	atl::real inDirection,
	atl::real inLength,
	avl::Segment2D& outSegment
)

Parameters

Name Type Range Default Description
inPoint const Point2D& A point on the created segment
inPointAnchor real 0.0 - 1.0 Anchor point, 0 means the beginning, 1 means the end of the segment
inDirection real Desired direction of the segment in degrees
inLength real Desired length of the segment in pixels
outSegment Segment2D& The resulting segment