Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Basics » CreateRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates a rectangle from an aligned point.
Syntax
C++
C#
void fil::CreateRectangle ( const fil::Point2D& inPoint, fil::Anchor2D::Type inPointAnchor, float inAngle, float inWidth, float inHeight, fil::Rectangle2D& outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint | const Point2D& | |||
![]() |
inPointAnchor | Anchor2D::Type | TopLeft | Alignment of the input point relatively to the box of the position | |
![]() |
inAngle | float | Clock-wise orientation angle | ||
![]() |
inWidth | float | 0.0 - ![]() |
Width of the created rectangle | |
![]() |
inHeight | float | 0.0 - ![]() |
Height of the created rectangle | |
![]() |
outRectangle | Rectangle2D& |