RegionBoundingRectangle_FixedAngle


Computes the smallest rectangle with the given orientation angle containing a region.

Syntax

C++
C#
Python
 
def RegionBoundingRectangle_FixedAngle(
	inRegion: Region,
	/,
	*,
	inAngle: float = 0,
	outCenter: Point2D | None = None
)
-> (
	outBoundingRectangle: Rectangle2D,
	outLongSide: float,
	outShortSide: float
)

Parameters

Name Type Default Description
Input value inRegion Region Input region
Input value inAngle float 0 Expected angle of the resulting rectangle
Output value outBoundingRectangle Rectangle2D Smallest bounding rectangle of the input region
Output value outCenter Point2D | None None Center of the bounding rectangle
Output value outLongSide float Length of the bounding rectangle long side
Output value outShortSide float Length of the bounding rectangle short side