Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D Constructions » ProjectPointOnCircle
Header: | FIL.h |
---|---|
Namespace: | fil |
Projects a point onto a circle.
Syntax
C++
C#
void fil::ProjectPointOnCircle ( const fil::Point2D& inPoint, const fil::Circle2D& inCircle, fil::Point2D& outProjectionPoint )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoint | const Point2D& | ||
![]() |
inCircle | const Circle2D& | ||
![]() |
outProjectionPoint | Point2D& |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when the input point and the center of the input circle are almost equal.
Examples
![]() |
![]() |
ProjectPointOnCircle performed on point and circle.