Back to Adaptive Vision Library website

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


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


Creates a rectangle structure from individual fields.


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


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


  • 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.