Back to Aurora Vision Library website

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

RescaleArc


Header: AVL.h
Namespace: avl
Module: FoundationLite

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

Syntax

C++
C#
 
void avl::RescaleArc
(
	const avl::Arc2D& inArc,
	atl::Optional<const avl::Point2D&> inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Arc2D& outArc
)

Parameters

Name Type Default Description
Input value inArc const Arc2D&
Input value inReferencePoint Optional<const Point2D&> NIL The point to which the distance of the arc 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 outArc Arc2D&

In-place Processing

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

Read more about In-place Computation.

Examples

RescaleArc performed on the sample arc, inReferencePoint = auto, inScale = 2.0 and inInverse = false.

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse scaling of an arc in RescaleArc.