Back to Aurora Vision Library website

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

ProjectPointOnLine


Header: AVL.h
Namespace: avl
Module: FoundationLite

Projects a point onto a line.

Syntax

C++
C#
 
void avl::ProjectPointOnLine
(
	const avl::Point2D& inPoint,
	const avl::Line2D& inLine,
	avl::Point2D& outProjectionPoint
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inLine const Line2D&
Output value outProjectionPoint Point2D&

Examples

ProjectPointOnLine performed on point and line.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in ProjectPointOnLine.