You are here: Start » AVL.NET » AVL.CropRegionToRectangle Method

AVL.CropRegionToRectangle Method

Creates a region from a rectangular fragment of another one.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CropRegionToRectangle(
	AvlNet.Region inRegion,
	AvlNet.Rectangle2D inRectangle,
	AvlNet.CoordinateSystem2D? inRectangleAlignment,
	out AvlNet.Region outRegion,
	out AvlNet.Rectangle2D outAlignedRectangle,
	out AvlNet.CoordinateSystem2D outOutputAlignment
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inRectangleAvlNet.Rectangle2DRectangle defining a rotated subregion.
inRectangleAlignmentAvlNet.CoordinateSystem2D?Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL, or null.
outRegionAvlNet.RegionOutput region.
outAlignedRectangleAvlNet.Rectangle2DInput rectangle after transformation (in the region coordinates)
outOutputAlignmentAvlNet.CoordinateSystem2DAlignment of the output region

See also