NormalizeRectangleOrientation
Changes orientation of the given rectangle according to parameters.
Syntax
C++
Python
def NormalizeRectangleOrientation( inRectangle: Rectangle2D, /, *, inReferenceAngle: float = 0.0, inRectangleOrientation: RectangleOrientation = RectangleOrientation.Horizontal ) -> outRectangle: Rectangle2D
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRectangle | Rectangle2D | Input rectangle | |
![]() |
inReferenceAngle | float | 0.0 | The middle angle of the valid range of the output rectangle's angle |
![]() |
inRectangleOrientation | RectangleOrientation | RectangleOrientation.Horizontal | Orientation of the output rectangle |
![]() |
outRectangle | Rectangle2D |


