You are here: Start » FIL.NET » Function Reference » Region » Region Spatial Transforms » FIL.RotateRegion
Rotates a region around a specified point.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RotateRegion ( FilNet.Region inRegion, FilNet.Point2D? inCenter, float inAngle, bool inInverse, FilNet.RotationSizeMode inSizeMode, int? inFrameWidth, int? inFrameHeight, FilNet.Region outRegion, out FilNet.CoordinateSystem2D outOutputAlignment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | FilNet.Region | Input region. | |||
inCenter | FilNet.Point2D? | Center of rotation. Default value: ftl::NIL. | |||
inAngle | float | Clockwise rotation angle. | |||
inInverse | bool | Switches to counter-clockwise rotation. | |||
inSizeMode | FilNet.RotationSizeMode | Preserve | Determines whether to extent the region size to fit the rotated region. Default value: Preserve. | ||
inFrameWidth | int? | <0, 65535> | Output region frame width, ignored when inSizeMode is set to RotationSizeMode::Fit. Default value: ftl::NIL. | ||
inFrameHeight | int? | <0, 65535> | Output region frame height, ignored when inSizeMode is set to RotationSizeMode::Fit. Default value: ftl::NIL. | ||
outRegion | FilNet.Region | Output region. | |||
outOutputAlignment | FilNet.CoordinateSystem2D | Alignment of the output region. |
Description
The operation rotates a region by the inAngle degrees around inCenter point. If the inCenter is not provided, the rotation is conducted around the mass center of the region.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region on input when rotation center is Nil in RotateRegion. |
Function Overrides
- RotateRegion(Region, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region)
- RotateRegion(Region, Nullable<Point2D>, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region)
- RotateRegion(Region, Nullable<Point2D>, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region, NullableValue<CoordinateSystem2D>)