Back to Aurora Vision Library Lite website

You are here: Start » All Functions » Geometry 2D Basics » AvsFilter_MakeRectangle

AvsFilter_MakeRectangle


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 rectangle structure from individual fields.

Syntax

void avs::AvsFilter_MakeRectangle
(
	const avl::Point2D& inOrigin,
	float inAngle,
	float inWidth,
	float inHeight,
	avl::Rectangle2D& outRectangle
)

Parameters

Name Type Range Default Description
Input value inOrigin const Point2D& Origin of the rectangle
Input value inAngle float Clock-wise orientation angle
Input value inWidth float 0.0 -
Input value inHeight float 0.0 -
Output value outRectangle Rectangle2D&

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.