PointsBoundingRectangle_FixedAngle_OrNil


Computes the smallest rectangle with the given orientation angle containing an array of points; returns NIL when the array is empty.

Syntax

C++
Python
 
def PointsBoundingRectangle_FixedAngle_OrNil(
	inPoints: list[Point2D],
	/,
	*,
	inAngle: float = 0
)
-> (
	outBoundingRectangle: Rectangle2D | None,
	outCenter: Point2D | None,
	outLongSide: float | None,
	outShortSide: float | None
)

Parameters

Name Type Default Description
Input value inPoints list[Point2D] Input array of points
Input value inAngle float 0 Expected angle of the resulting rectangle
Output value outBoundingRectangle Rectangle2D | None Smallest bounding rectangle of the input points
Output value outCenter Point2D | None Center of the bounding rectangle
Output value outLongSide float | None Length of the bounding rectangle long side
Output value outShortSide float | None Length of the bounding rectangle short side