PathBoundingRectangle_FixedAngle_OrNil
Computes the smallest rectangle with the given orientation angle containing a path; returns NIL when the path is empty.
Syntax
C++
C#
Python
def PathBoundingRectangle_FixedAngle_OrNil( inPath: Path, /, *, inAngle: float = 0 ) -> ( outBoundingRectangle: Rectangle2D | None, outCenter: Point2D | None, outLongSide: float | None, outShortSide: float | None )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPath | Path | Input path | |
![]() |
inAngle | float | 0 | Expected angle of the resulting rectangle |
![]() |
outBoundingRectangle | Rectangle2D | None | Smallest bounding rectangle of the input path | |
![]() |
outCenter | Point2D | None | Center of the bounding rectangle | |
![]() |
outLongSide | float | None | Length of the bounding rectangle long side | |
![]() |
outShortSide | float | None | Length of the bounding rectangle short side |


