Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TranslateRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Translates a rectangle by a vector.
Syntax
C++
C#
void fil::TranslateRectangle ( const fil::Rectangle2D& inRectangle, const fil::Vector2D& inDelta, bool inInverse, fil::Rectangle2D& outRectangle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inDelta | const Vector2D& | Translation vector | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outRectangle | Rectangle2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inRectangle and outRectangle
Read more about In-place Computation.
Examples
![]() |
![]() |
TranslateRectangle performed on the sample rectangle, inDelta = (60.0, 80.0) and inInverse = False.