Back to Aurora Vision Library Lite website

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

ProjectPointOnCircle


Header: AVL.h
Namespace: avl

Projects a point onto a circle.

Syntax

void avl::ProjectPointOnCircle
(
	const avl::Point2D& inPoint,
	const avl::Circle2D& inCircle,
	avl::Point2D& outProjectionPoint
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inCircle const Circle2D&
Output value 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.