Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Constructions » ProjectPointsOnLine
ProjectPointsOnLine
Projects points onto a line.
Header: | AVL.h |
---|
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 |
Description
The orientation of the resulting outProjectionSegment is always between 0 and 180 degrees.
Examples
Errors
Error type | Description |
---|---|
DomainError | Indefinite line on input in ProjectPointsOnLine. |