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
Input value inRectangle Rectangle2D Input rectangle
Input value inReferenceAngle float 0.0 The middle angle of the valid range of the output rectangle's angle
Input value inRectangleOrientation RectangleOrientation RectangleOrientation.Horizontal Orientation of the output rectangle
Output value outRectangle Rectangle2D