# Get coordinates from a rectangle

**URL:** <https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740>\
**Category:** Beginners\
**Created:** [September 13, 2022, 2:50pm UTC](https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740 "2022-09-13T14:50:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xfred53](https://avatars.discourse-cdn.com/v4/letter/x/58956e/32.png) [@xfred53](https://discourse.processing.org/u/xfred53)\
**Post date:** [September 13, 2022, 2:50pm UTC](https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740/1 "2022-09-13T14:50:06Z")

</div>

Hi,  
Is it possible to get the coordinates of the angles of a rectangle after some transformations ?  
See following code :

```auto
size(200,200,P3D);
rectMode(CENTER);
pushMatrix();
translate(50,100,0);
rotateX(45);
rect(50,50,100,50);
popMatrix();

// is it here possible to access the coordinates of the angles of the rectangle ?
// (before the translation and the rotation)

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 13, 2022, 3:55pm UTC](https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740/2 "2022-09-13T15:55:02Z")

</div>

I think that’s modelX, modelY and modelZ

also interesting screenX and screenY

see [Reference / Processing.org](https://processing.org/reference/)
