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