Back to Adaptive Vision Library website

You are here: Start » Function Reference » Location » TranslateLocation

TranslateLocation


Shifts a Location by given number of pixels along each axis

Syntax

C++
C#
 
void avl::TranslateLocation
(
	const avl::Location& inLocation,
	int inDeltaX,
	int inDeltaY,
	bool inInverse,
	avl::Location& outLocation
)

Parameters

Name Type Default Description
inLocation const Location& Input location
inDeltaX int Shift along the x axis
inDeltaY int Shift along the y axis
inInverse bool Switches to inverse operation
outLocation Location& Shifted location