You are here: Start » AVL.NET » AVL.RegionBoundingRectangle(AvlNet.Region, float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

AVL.RegionBoundingRectangle(AvlNet.Region, float?, AvlNet.BoundingRectangleFeature, AvlNet.Rectangle2D, AvlNet.Point2D, float, float)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RegionBoundingRectangle(
	AvlNet.Region inRegion,
	float? inRectangleOrientation,
	AvlNet.BoundingRectangleFeature inBoundingRectangleFeature,
	out AvlNet.Rectangle2D outBoundingRectangle,
	out AvlNet.Point2D outCenter,
	out float outLongSide,
	out float outShortSide
)

Parameters

inRegion
Type: AvlNet.Region
inRectangleOrientation
Type: System.Nullable<System.Single>
inBoundingRectangleFeature
Type: AvlNet.BoundingRectangleFeature
outBoundingRectangle
Type: AvlNet.Rectangle2D
outCenter
Type: AvlNet.Point2D
outLongSide
Type: System.Single
outShortSide
Type: System.Single

Examples

RegionBoundingRectangle performed on a sample region.

Remarks

Orientation of the resulting rectangle will be in range of 0..90 degrees. Consider using NormalizeRectangleOrientation if another orientation is more appropriate.

Errors

Error type Description
DomainError Empty region on input in RegionBoundingRectangle.

See also