You are here: Start » AVL.NET » AVL.RescaleRectangle
Changes the corners and the dimensions of a rectangle.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void RescaleRectangle ( AvlNet.Rectangle2D inRectangle, AvlNet.Point2D? inReferencePoint, float inScale, bool inInverse, out AvlNet.Rectangle2D outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRectangle | AvlNet.Rectangle2D | ||||
inReferencePoint | AvlNet.Point2D? | The point, to which all distance will be changed proportionally. Default value: atl::NIL. | |||
inScale | float | 1.0f | Scaling factor. Default value: 1.0f. | ||
inInverse | bool | Switches to the inverse operation. | |||
outRectangle | AvlNet.Rectangle2D |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inScale cannot be zero in inverse operation in RescaleRectangle. |