Back to Adaptive Vision Library website

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

TranslateLocation


Header:AVL.h
Namespace:avl

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

In-place Processing

This function supports in-place data processing - you can pass the same reference to inLocation and outLocation

Read more about In-place Computation.