RescaleRectangle


Changes the corners and the dimensions of a rectangle.

Syntax

C++
Python
 
def RescaleRectangle(
	inRectangle: Rectangle2D,
	/,
	*,
	inReferencePoint: Point2D | None = None,
	inScale: float = 1.0,
	inInverse: bool = False
)
-> outRectangle: Rectangle2D

Parameters

Name Type Default Description
Input value inRectangle Rectangle2D
Input value inReferencePoint Point2D | None None The point, to which all distance will be changed proportionally
Input value inScale float 1.0 Scaling factor
Input value inInverse bool False Switches to the inverse operation
Output value outRectangle Rectangle2D