Back to Aurora Vision Library website

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

CreateRectangle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a rectangle from an aligned point.

Syntax

C++
C#
 
void avl::CreateRectangle
(
	const avl::Point2D& inPoint,
	avl::Anchor2D::Type inPointAnchor,
	float inAngle,
	float inWidth,
	float inHeight,
	avl::Rectangle2D& outRectangle
)

Parameters

Name Type Range Default Description
Input value inPoint const Point2D&
Input value inPointAnchor Anchor2D::Type TopLeft Alignment of the input point relatively to the box of the position
Input value inAngle float Clock-wise orientation angle
Input value inWidth float 0.0 - Width of the created rectangle
Input value inHeight float 0.0 - Height of the created rectangle
Output value outRectangle Rectangle2D&