Back to Aurora Vision Library Lite website

You are here: Start » Basic » Location » TranslateLocation

TranslateLocation


Header: AVL.h
Namespace: avl

Shifts a Location by a 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
Input value inLocation const Location& Input location
Input value inDeltaX int Shift along the x axis
Input value inDeltaY int Shift along the y axis
Input value inInverse bool Switches to inverse operation
Output value 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.