Back to Adaptive Vision Library website

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

AvsFilter_MakeSegment


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header:AVL.h
Namespace:avs

Creates a segment structure from individual fields.

Syntax

void avs::AvsFilter_MakeSegment
(
	const avl::Point2D& inPoint1,
	const avl::Point2D& inPoint2,
	avl::Segment2D& outSegment
)

Parameters

Name Type Default Description
inPoint1 const Point2D& First point of the segment
inPoint2 const Point2D& Second point of the segment
outSegment Segment2D&

Hints

  • Consider using "Expand Structure Fields" command from the input port's context menu instead of this filter. This will make the program more concise and thus easier to understand in most cases.
  • "Make" filters should only be used when you need to create a structure explicitly and then use it in more than one further filters.