You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.TrimSegmentToPolygon
Finds all subsegments that are inside a given polygon.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void TrimSegmentToPolygon ( AvlNet.Path inPolygon, AvlNet.Segment2D inSegment, IList<AvlNet.Segment2D> outSubsegments )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPolygon | AvlNet.Path | ||||
inSegment | AvlNet.Segment2D | ||||
outSubsegments | System.Collections.Generic.IList<AvlNet.Segment2D> |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in TrimSegmentToPolygon. |
DomainError | Open path on input in TrimSegmentToPolygon. |