You are here: Start » FIL.NET » Function Reference » Region » Region Features » FIL.RegionOrientation
Computes the orientation of a region as an angle of value in a proper range.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RegionOrientation ( FilNet.Region inRegion, FilNet.AngleRange inAngleRange, out float outOrientationAngle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | FilNet.Region | Input region. | |||
inAngleRange | FilNet.AngleRange | _0_180 | Switches between ranges <0; 90), <0; 180) and <0; 360) | ||
outOrientationAngle | float |
Description
Region orientation can be thought of as the direction in which the region is oriented. Mathematically it is the angle between X-axis and the line passing through the region mass center, that rotation around this line produces the smallest torque.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region on input in RegionOrientation. |