You are here: Start » AVL.NET » AVL.RegionInscribedBox(AvlNet.Region, float, float?, int, int?, int, int?, AvlNet.Box?)
AVL.RegionInscribedBox(AvlNet.Region, float, float?, int, int?, int, int?, AvlNet.Box?)
Computes the largest box contained in a region.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RegionInscribedBox( AvlNet.Region inRegion, float inMinAspectRatio, float? inMaxAspectRatio, int inMinWidth, int? inMaxWidth, int inMinHeight, int? inMaxHeight, out AvlNet.Box? outBox )
Parameters
- inRegion
- Type: AvlNet.Region
Input region - inMinAspectRatio
- Type: System.Single
Minimal aspect ratio of found box - inMaxAspectRatio
- Type: System.Nullable<System.Single>
Maximal aspect ratio of found box (reciprocal of inMinAspectRatio by default), or null. - inMinWidth
- Type: System.Int32
Minimal width of found box - inMaxWidth
- Type: System.Nullable<System.Int32>
Maximal width of found box, or null. - inMinHeight
- Type: System.Int32
Minimal height of found box - inMaxHeight
- Type: System.Nullable<System.Int32>
Maximal height of found box, or null. - outBox
- Type: System.Nullable<AvlNet.Box>
Found box with largest area
Examples
RegionInscribedBox performed on a sample region with inMaxAspectRatio = Auto. |
RegionInscribedBox performed on a sample region with inMaxAspectRatio = 2.0. |
