Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Constructions » ProjectPointOnLine
ProjectPointOnLine
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Projects a point onto a line.
Syntax
void avl::ProjectPointOnLine ( const avl::Point2D& inPoint, const avl::Line2D& inLine, avl::Point2D& outProjectionPoint, float& outSignedDistance = atl::Dummy<float>() )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoint | const Point2D& | ||
![]() |
inLine | const Line2D& | ||
![]() |
outProjectionPoint | Point2D& | ||
![]() |
outSignedDistance | float& | Dummy<float>() |
Examples
![]() |
![]() |
ProjectPointOnLine performed on point and line.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in ProjectPointOnLine. |




