Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 2D Constructions »
ProjectPointOnLine
Projects a point onto a line.
Syntax
C++
C#
void avl::ProjectPointOnLine
(
const avl::Point2D& inPoint,
const avl::Line2D& inLine,
avl::Point2D& outProjectionPoint
)
void ProjectPointOnLine
(
Point2D inPoint,
Line2D inLine,
out Point2D outProjectionPoint
)
Parameters
|
Name |
Type |
Default |
Description |
|
inPoint |
const Point2D& |
|
|
|
inLine |
const Line2D& |
|
|
|
outProjectionPoint |
Point2D& |
|
|
Examples
ProjectPointOnLine performed on point and line.
Errors
Error type |
Description |
DomainError |
Indefinite line on input in ProjectPointOnLine. |