RotateRegion
Rotates a region around a specified point.
Syntax
C++
C#
Python
def RotateRegion( inRegion: Region, inAngle: float, outRegion: Region, /, *, inCenter: Point2D | None = None, inInverse: bool = False, inSizeMode: RotationSizeMode = RotationSizeMode.Preserve, inFrameWidth: int | None = None, inFrameHeight: int | None = None, outOutputAlignment: CoordinateSystem2D | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inCenter | Point2D | None | None | Center of rotation | |
![]() |
inAngle | float | Clockwise rotation angle | ||
![]() |
inInverse | bool | False | Switches to counter-clockwise rotation | |
![]() |
inSizeMode | RotationSizeMode | RotationSizeMode.Preserve | Determines whether to extent the region size to fit the rotated region. | |
![]() |
inFrameWidth | int | None | 0 - 65535 | None | Output region frame width, ignored when inSizeMode is set to RotationSizeMode::Fit. |
![]() |
inFrameHeight | int | None | 0 - 65535 | None | Output region frame height, ignored when inSizeMode is set to RotationSizeMode::Fit. |
![]() |
outRegion | Region | Output region | ||
![]() |
outOutputAlignment | CoordinateSystem2D | None | None | Alignment of the output region |


