Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   math help (http://forums.winamp.com/showthread.php?t=113592)

John M 10th November 2002 19:44

math help
 
k, i had geometry first period last year, so i slept through it. now its coming back to bite me in the ass. this is the part where you all come in.

how do i do:

r sin theta

and

r cos theta?

thanks, btw, its for converting polar coordinates to rectangular.

meaisl8again 10th November 2002 19:56

What are you trying to find here? I don't understand the question.

Lots of love,
Mea

ujay 10th November 2002 19:57

Your polar co-ords will be given as two parameters - (r,theta)

To convert to rect co-ords

x co-ord = r times sin(theta)
y co-ord = r times cos(thea)

(edit) if theta > 90 degrees you will need to observe the sign (+ve and -ve) (/edit)

UJ

John M 10th November 2002 20:33

whats +ve and -ve?

this is for a computer program that converts (r,theta) to (x,y).

rm' 10th November 2002 20:34

Shorthand for positive and negative.

ujay 10th November 2002 20:47

In that case it may depend on what language you're using. The function calls to Sin(theta), Cos(theta) should take care of the sign for you.

The other thing to check is whether theta is given in degrees or radians.

UJ


All times are GMT. The time now is 09:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.