Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » ProjectPointsOnLine
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationLite |
Projects points onto a line.
Syntax
C++
C#
void avl::ProjectPointsOnLine ( const atl::Array<avl::Point2D>& inPoints, const avl::Line2D& inLine, atl::Array<avl::Point2D>& outProjectionPoints, atl::Optional<atl::Conditional<avl::Segment2D>&> outProjectionSegment = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | ||
![]() |
inLine | const Line2D& | ||
![]() |
outProjectionPoints | Array<Point2D>& | ||
![]() |
outProjectionSegment | Optional<Conditional<Segment2D>&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outProjectionSegment.
Read more about Optional Outputs.
Description
The orientation of the resulting outProjectionSegment is always between 0 and 180 degrees.
Examples
![]() |
![]() |
ProjectPointsOnLine performed on points and line.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in ProjectPointsOnLine. |




