You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Constructions » AVL.ProjectPointsOnLine
Projects points onto a line.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ProjectPointsOnLine ( IList<AvlNet.Point2D> inPoints, AvlNet.Line2D inLine, IList<AvlNet.Point2D> outProjectionPoints, NullableRef<NullableValue<AvlNet.Segment2D>> outProjectionSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
inLine | AvlNet.Line2D | ||||
outProjectionPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
outProjectionSegment | AvlNet.NullableRef<AvlNet.NullableValue<AvlNet.Segment2D>> | Can be null to skip this parameter calculation. |
Description
The orientation of the resulting outProjectionSegment is always between 0 and 180 degrees.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in ProjectPointsOnLine. |
Function Overrides
- ProjectPointsOnLine(IList<Point2D>, Line2D, IList<Point2D>)
- ProjectPointsOnLine(IList<Point2D>, Line2D, IList<Point2D>, Nullable<Segment2D>)