TranslateLocation


Shifts a Location by a given number of pixels along each axis.

Syntax

C++
Python
 
def TranslateLocation(
	inLocation: Location,
	inDeltaX: int,
	inDeltaY: int,
	/,
	*,
	inInverse: bool = False
)
-> outLocation: Location

Parameters

Name Type Default Description
Input value inLocation 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 False Switches to inverse operation
Output value outLocation Location Shifted location