Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » ProjectPointsOnCircle

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
Input value inPoints const Array<Point2D>& Points to be projected
Input value inCircle const Circle2D& Circle the points will be projected on
Output value outProjectionPoints Array<Point2D>& Projected points
Output value 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.