CreateRectangle
Creates a rectangle from an aligned point.
Syntax
C++
Python
def CreateRectangle( inPoint: Point2D, inAngle: float, inWidth: float, inHeight: float, /, *, inPointAnchor: Anchor2D = Anchor2D.TopLeft ) -> outRectangle: Rectangle2D
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoint | Point2D | |||
![]() |
inPointAnchor | Anchor2D | Anchor2D.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 |



