You are here: Start » AVL.NET » AVL.NormalizeRectangleOrientation(AvlNet.Rectangle2D, float, AvlNet.RectangleOrientation, AvlNet.Rectangle2D)
AVL.NormalizeRectangleOrientation(AvlNet.Rectangle2D, float, AvlNet.RectangleOrientation, AvlNet.Rectangle2D)
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void NormalizeRectangleOrientation( AvlNet.Rectangle2D inRectangle, float inMinAngle, AvlNet.RectangleOrientation inRectangleOrientation, out AvlNet.Rectangle2D outRectangle )
Parameters
- inRectangle
- Type: AvlNet.Rectangle2D
- inMinAngle
- Type: System.Single
- inRectangleOrientation
- Type: AvlNet.RectangleOrientation
- outRectangle
- Type: AvlNet.Rectangle2D
Description
The operation changes the input rectangle's marked corner so the output rectangle's rotation angle is the lowest possible not lower than inMinAngle satisfying the inRectangleOrientation parameter at the same time. Some sample parameters configurations are:
- inMinAngle = 0, inRectangleOrientation = Any – the marked corner will have the least y coordinate possible
- inMinAngle = -90, inRectangleOrientation = Any – the marked corner will have the least x coordinate possible
- inRectangleOrientation = Horizontal – the output rectangle's width will be not shorter than its height
- inRectangleOrientation = Vertical – the output rectangle's height will be not shorter than its width
Examples
![]() |
![]() |
NormalizeRectangleOrientation performed on a sample rectangle with inMinAngle = 0 and inRectangleOrientation = Any.


