You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.TranslateRectangle
Translates a rectangle by a vector.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void TranslateRectangle ( AvlNet.Rectangle2D inRectangle, AvlNet.Vector2D inDelta, bool inInverse, out AvlNet.Rectangle2D outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRectangle | AvlNet.Rectangle2D | |||
![]() | inDelta | AvlNet.Vector2D | Translation vector. | ||
![]() | inInverse | bool | Switches to the inverse operation. | ||
![]() | outRectangle | AvlNet.Rectangle2D |
Examples
![]() |
![]() |
TranslateRectangle performed on the sample rectangle, inDelta = (60.0, 80.0) and inInverse = False.