You are here: Start » AVL.NET » AVL.RescaleCircle
Changes radius of a circle and translates its center in relation to a reference point.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void RescaleCircle ( AvlNet.Circle2D inCircle, AvlNet.Point2D? inReferencePoint, float inScale, bool inInverse, out AvlNet.Circle2D outCircle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inCircle | AvlNet.Circle2D | ||||
inReferencePoint | AvlNet.Point2D? | The point to which the distance of the circle center is changed (no change by default). Default value: atl::NIL. | |||
inScale | float | 1.0f | Scaling factor. Default value: 1.0f. | ||
inInverse | bool | Switches to the inverse operation. | |||
outCircle | AvlNet.Circle2D |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inScale cannot be zero in an inverse scaling in RescaleCircle. |