Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 2D Spatial Transforms »
RescaleArc
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
)
void RescaleArc
(
Arc2D inArc,
Point2D? inReferencePoint,
float inScale,
bool inInverse,
out Arc2D outArc
)
Parameters
|
Name |
Type |
Default |
Description |
|
inArc |
const Arc2D& |
|
|
|
inReferencePoint |
Optional<const Point2D&> |
NIL |
The point to which the distance of the arc center is changed (no change by default) |
|
inScale |
float |
1.0f |
Scaling factor |
|
inInverse |
bool |
|
Switches to the inverse operation |
|
outArc |
Arc2D& |
|
|
Examples
RescaleArc performed on the sample arc, inReferencePoint = auto, inScale = 2.0 and inInverse = false.
Errors
Error type |
Description |
DomainError |
inScale cannot be zero in an inverse scaling in RescaleArc. |