Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » ProjectPointsOnCircle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Projects points onto a circle.
Syntax
C++
C#
void fil::ProjectPointsOnCircle ( const ftl::Array<fil::Point2D>& inPoints, const fil::Circle2D& inCircle, ftl::Array<fil::Point2D>& outProjectionPoints, ftl::Conditional<fil::Arc2D>& outProjectionArc )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Points to be projected | |
![]() |
inCircle | const Circle2D& | Circle the points will be projected on | |
![]() |
outProjectionPoints | Array<Point2D>& | Projected points | |
![]() |
outProjectionArc | Conditional<Arc2D>& | Arc containing the projected points |
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 an input point and the center of the input circle are almost equal.
Examples
![]() |
![]() |
ProjectPointsOnCircle performed on points and circle.