# Origin of PVector

**URL:** <https://discourse.processing.org/t/origin-of-pvector/36881>\
**Category:** Beginners\
**Created:** [May 14, 2022, 6:36am UTC](https://discourse.processing.org/t/origin-of-pvector/36881 "2022-05-14T06:36:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tensor](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tensor](https://discourse.processing.org/u/tensor)\
**Post date:** [May 14, 2022, 6:36am UTC](https://discourse.processing.org/t/origin-of-pvector/36881/1 "2022-05-14T06:36:42Z")

</div>

How do i set the origin of a PVector to point other than the pre-defined top-left corner of screen?

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [May 14, 2022, 6:51am UTC](https://discourse.processing.org/t/origin-of-pvector/36881/2 "2022-05-14T06:51:52Z")

</div>

With [translate()](https://processing.org/reference/translate_.html). It changes point from where coordinate system starts. Tutorial of translations explains how to use it [2D Transformations / Processing.org](https://processing.org/tutorials/transform2d)
