Back to Adaptive Vision Library Lite website

You are here: Start » Location » TranslateLocation

TranslateLocation


Shifts a Location by given number of pixels along each axis

Syntax

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