General > Off Topic
Sinus
Zelos:
the thing is that it cant be depended on X, it need to be depended on something else, like Z wich = 1 step, and from wich step decied X/Y
Numsgil:
Oh, this is getting complex isn't it ;)
Multivariable functions always give me a headache :blink:
Probably you'll want to make a function by parametrization.
Zelos:
It gotta be sin/cos angel then somekinda formula to calculate its position by that value and waht step it is. I want it to be able to go around for a whole circle
PurpleYouko:
I wrote a spirograph program once.
It moved the centre of a circle along a circular path while simultaneously drawing a circle around the moving center.
That was kind of fun :D
Botsareus:
--- Quote ---My sinus's are clogged right now.
But I guess that's sort of off topic isn't it.
--- End quote ---
Now , Num, Dont you drive...., you have to walk all the time? (I remember you telling me you had to go back home trough a winter storm or somthing)
Zelos,
I would of approched it like this: first draw a virtual sin curve and then rotate it.
For a circle its a bit more tricky:
When you draw a circles with a compas, your radios is nice and constant, thats why you get a nice circle.
But now apply sin to the radios for any givin plot of a circles boarder. And you get exactly what you are looking for.
All you have to know now how to do rotational ploting...
Somthing like X = sin(ang) * Radios , Y = cos(ang) * Radios , gives you a circle for any ang...
so you will use somthing like:
X = sin(ang) * sin(Radios) , Y = cos(ang) * sin(Radios)
err... now there might be an easyer method of rotation by using above to draw a reguler sloped line... I cant think of it, so experiment see what happens...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version