You are here: Start » AVL.NET » AVL.RegionOrientation(AvlNet.Region, float)

AVL.RegionOrientation(AvlNet.Region, float)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RegionOrientation(
	AvlNet.Region inRegion,
	out float outOrientationAngle
)

Parameters

inRegion
Type: AvlNet.Region
outOrientationAngle
Type: System.Single

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

Orientation of the sample region equals to 53.496, which is visualized on the second image by drawing the line of this orientation passing through the region mass center.

See also