Back to Aurora Vision Library Lite website

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

ProjectPointsOnCircle


Header: AVL.h
Namespace: avl

Projects points onto a circle.

Syntax

void avl::ProjectPointsOnCircle
(
	const atl::Array<avl::Point2D>& inPoints,
	const avl::Circle2D& inCircle,
	atl::Array<avl::Point2D>& outProjectionPoints,
	atl::Conditional<avl::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.