Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Constructions » PointsOnLineProjection

PointsOnLineProjection


Projects points onto a line.

Syntax

C++
C#
 
void avl::PointsOnLineProjection
(
	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

PointsOnLineProjection performed on points and line.

Errors

Error type Description
DomainError Indefinite line on input in PointsOnLineProjection.