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 | |
---|---|---|---|---|
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.