Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » ProjectPointOnLine
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Projects a point onto a line.
Syntax
C++
C#
void fil::ProjectPointOnLine ( const fil::Point2D& inPoint, const fil::Line2D& inLine, fil::Point2D& outProjectionPoint )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoint | const Point2D& | ||
![]() |
inLine | const Line2D& | ||
![]() |
outProjectionPoint | Point2D& |
Examples
![]() |
![]() |
ProjectPointOnLine performed on point and line.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in ProjectPointOnLine. |