RotateRectangle


Rotates a rectangle clockwise around a center point.

Syntax

C++
Python
 
def RotateRectangle(
	inRectangle: Rectangle2D,
	inAngle: float,
	/,
	*,
	inCenter: Point2D | None = None,
	inInverse: bool = False
)
-> outRectangle: Rectangle2D

Parameters

Name Type Default Description
Input value inRectangle Rectangle2D
Input value inCenter Point2D | None None Center of rotation (the rectangle's point by default)
Input value inAngle float Clockwise rotation angle
Input value inInverse bool False Switches to the inverse operation
Output value outRectangle Rectangle2D