# getTouchTargetCoords

Function · category: Input Devices

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/platform/input/touch-event.js#L14

```ts
getTouchTargetCoords(touch: Touch): { x: number; y: number }
```

This function takes a browser Touch object and returns the coordinates of the touch relative to
the target DOM element.

**Parameters**

- `touch` (`Touch`): The browser Touch object.

**Returns** `{ x: number; y: number }`: The coordinates of the touch relative to the touch.target
DOM element.
