# Math Question

**URL:** https://forum.kirupa.com/t/math-question/117803
**Category:** Uncategorized
**Created:** [July 30, 2004, 12:45pm UTC](https://forum.kirupa.com/t/math-question/117803 "2004-07-30T12:45:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hoffmandirt](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hoffmandirt](https://forum.kirupa.com/u/hoffmandirt)
#### Post date: [July 30, 2004, 12:45pm UTC](https://forum.kirupa.com/t/math-question/117803/1 "2004-07-30T12:45:41Z")

</div>

Can someone explain to me how to graph sine and cosine without the cartesian plots? I understand y+ goes down and x+ goes right for graphics. So I think what I am wondering is there a way to move the origin of the graph say to the middle of the screen. Also maybe set the coordinates back to the cartesian way. And maybe an equation that converts pixels to points? pi apprx = 3.14 but if i draw a line 3.14 then it goes no where bc its using pixels. Thanks for any help.

---

<div class="post-metadata">

### Author: ![mbo108](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mbo108](https://forum.kirupa.com/u/mbo108)
#### Post date: [July 30, 2004, 3:36pm UTC](https://forum.kirupa.com/t/math-question/117803/2 "2004-07-30T15:36:30Z")

</div>

If you make a movie clip on top of the stage, with the same dimensions of the stage (say its the default, 550 x 400), you can get the width and height of the movie clip and divide by 2.

xOrigin = myMovieClip\_mc.\_width/2;  
yOrigin = myMovieClip\_mc.\_height/2;

Now do your coordinates from these points.

> [@hoffmandirt](#):
>
> Can someone explain to me how to graph sine and cosine without the cartesian plots? I understand y+ goes down and x+ goes right for graphics. So I think what I am wondering is there a way to move the origin of the graph say to the middle of the screen. Also maybe set the coordinates back to the cartesian way. And maybe an equation that converts pixels to points? pi apprx = 3.14 but if i draw a line 3.14 then it goes no where bc its using pixels. Thanks for any help.
