EllipseBoundingRectangle


Computes the smallest rectangle containing an ellipse.

Syntax

C++
Python
 
def EllipseBoundingRectangle(
	inEllipse: Ellipse2D,
	/,
	*,
	outCenter: Point2D | None = None
)
-> (
	outBoundingRectangle: Rectangle2D,
	outLongSide: float,
	outShortSide: float
)

Parameters

Name Type Default Description
Input value inEllipse Ellipse2D
Output value outBoundingRectangle Rectangle2D Smallest bounding rectangle of the input points
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