Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » TranslateRectangle

TranslateRectangle


Translates a rectangle by a vector.

Syntax

C++
C#
 
void avl::TranslateRectangle
(
	const avl::Rectangle2D& inRectangle,
	const avl::Vector2D& inDelta,
	bool inInverse,
	avl::Rectangle2D& outRectangle
)

Parameters

Name Type Default Description
inRectangle const Rectangle2D&
inDelta const Vector2D& Translation vector
inInverse bool Switches to the inverse operation
outRectangle Rectangle2D&

Examples

TranslateRectangle performed on the sample rectangle, inDelta = (60.0, 80.0) and inInverse = False.