# Getting the pan/tilt of mouse

**URL:** <https://forum.kirupa.com/t/getting-the-pan-tilt-of-mouse/288860>\
**Category:** programming\
**Created:** [May 21, 2009, 11:03pm UTC](https://forum.kirupa.com/t/getting-the-pan-tilt-of-mouse/288860 "2009-05-21T23:03:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prisma](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@prisma](https://forum.kirupa.com/u/prisma)\
**Post date:** [May 21, 2009, 11:03pm UTC](https://forum.kirupa.com/t/getting-the-pan-tilt-of-mouse/288860/1 "2009-05-21T23:03:46Z")

</div>

Hi, I’m not very good with more advanced maths, so I have to ask this:

If I have a camera which gives out 360 degree pan (x) and tilt (y) values, and I want to get the pan and tilt values of where I have my cursor in the camera’s view, how would I convert that?

More info: It’s a Flash/AS3 project. The pan and tilt values are from the center of the camera view. Camera view size is 960x540.

Thanks for any input!
