You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.TrimLine
Creates a segment contained in a box from a line.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void TrimLine ( AvlNet.Line2D inLine, AvlNet.Box inBox, out AvlNet.Segment2D? outSegment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inLine | AvlNet.Line2D | |||
![]() | inBox | AvlNet.Box | Box defining a region the input line will be cropped to. | ||
![]() | outSegment | AvlNet.Segment2D? |
Examples
![]() |
![]() |
TrimLine performed on line and box.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in TrimLine. |




