You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » 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, float inScale, bool inInverse, out AvlNet.Rectangle2D outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRectangle | AvlNet.Rectangle2D | |||
![]() | inScale | float | 1.0f | Scaling factor. Default value: 1.0f. | |
![]() | inInverse | bool | Switches to the inverse operation. | ||
![]() | outRectangle | AvlNet.Rectangle2D |
Examples
![]() |
![]() |
RescaleRectangle performed on the sample rectangle, inReferencePoint = (0.0, 0.0), inScale = 2.0 and inInverse = false.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in inverse scaling of rectangle in RescaleRectangle. |