# 2D screen and 'world' position coordinates

**URL:** <https://discourse.processing.org/t/2d-screen-and-world-position-coordinates/44569>\
**Category:** Coding Questions\
**Created:** [June 10, 2024, 3:22am UTC](https://discourse.processing.org/t/2d-screen-and-world-position-coordinates/44569 "2024-06-10T03:22:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![scudly](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scudly/32/5597_2.png) [@scudly](https://discourse.processing.org/u/scudly)\
**Post date:** [June 10, 2024, 2:08pm UTC](https://discourse.processing.org/t/2d-screen-and-world-position-coordinates/44569/2 "2024-06-10T14:08:11Z")

</div>

Take a look at the math here: [Using the mouse position to zoom in on a map - #10 by scudly](https://discourse.processing.org/t/using-the-mouse-position-to-zoom-in-on-a-map/44137/10)

and here’s one that supports rotation as well as pan and zoom: [https://www.reddit.com/r/processing/comments/aecgdp/using\_a\_mousebased\_ui\_to\_explore\_truchet\_tiles/](https://www.reddit.com/r/processing/comments/aecgdp/using_a_mousebased_ui_to_explore_truchet_tiles/)

---

_[View the full topic](https://discourse.processing.org/t/2d-screen-and-world-position-coordinates/44569)._
