You are here: Start » AVL.NET » AVL.CropLineToRectangle Method
AVL.CropLineToRectangle Method
Creates a segment contained in a rectangle from a line.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void CropLineToRectangle( AvlNet.Line2D inLine, AvlNet.Rectangle2D inRectangle, out AvlNet.Segment2D? outSegment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inLine | AvlNet.Line2D | |||
![]() | inRectangle | AvlNet.Rectangle2D | Rectangle defining a region the input line will be cropped to. | ||
![]() | outSegment | AvlNet.Segment2D? |
Errors
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in CropLineToRectangle. |


