Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RescaleCircle

RescaleCircle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Changes radius of a circle and translates its center in relation to a reference point.

Syntax

C++
C#
 
void avl::RescaleCircle
(
	const avl::Circle2D& inCircle,
	atl::Optional<const avl::Point2D&> inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Circle2D& outCircle
)

Parameters

Name Type Default Description
Input value inCircle const Circle2D&
Input value inReferencePoint Optional<const Point2D&> NIL The point to which the distance of the circle center is changed (no change by default)
Input value inScale float 1.0f Scaling factor
Input value inInverse bool Switches to the inverse operation
Output value outCircle Circle2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inCircle and outCircle

Read more about In-place Computation.

Examples

RescaleCircle performed on the sample circle, inReferencePoint = auto, inScale = 0.5 and inInverse = false.

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling of a circle in RescaleCircle.