---
title: translationInObject()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkpangesturerecognizer/translationinobject()
---

# translationInObject()

The amount of translation for the pan gesture in the current object.

## Declaration

```swift
func translationInObject() -> CGPoint
```

## Return Value

Return Value A point representing the translation value relative to the current object’s coordinate system.

## Discussion

Discussion The x and y values report the total translation over time. They are not delta values from the last time that the translation was reported.

## See Also

### Tracking the Location and Velocity of the Gesture

- [velocityInObject()](watchkit/wkpangesturerecognizer/velocityinobject().md)
