Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RescaleCircle
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 | |
---|---|---|---|---|
inCircle | const Circle2D& | |||
inReferencePoint | Optional<const Point2D&> | NIL | The point to which the distance of the circle center is changed (no change by default) | |
inScale | float | 1.0f | Scaling factor | |
inInverse | bool | Switches to the inverse operation | ||
outCircle | Circle2D& |
Examples
Errors
Error type | Description |
---|---|
DomainError | inScale cannot be zero in an inverse scaling in RescaleCircle. |