Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Rotating a plotted graph

Author
Message
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Jan 2007 11:53
Just a quick question here; does anybody know how to alter a function so that it's graph is turned 90 degrees?

Thanks for replies, guys.

"I kören hörs de brummande busarna Björnligan och Gondolen"
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 22nd Jan 2007 13:09
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Jan 2007 13:47
Well.... firstly, that would turn it 180 degrees I think.
Secondly, it isn't a regular f(x) = ? function, but written like this:


It's purpose is to generate a cardiod graph, which could then be used as a heart symbol in a game.
(Yep, I know that I can just get it as an image and rotate that, but I'd like to create this with just drawing functions)

"I kören hörs de brummande busarna Björnligan och Gondolen"
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Jan 2007 13:50 Edited at: 22nd Jan 2007 13:55
He didn't mean invert them really. He meant use the x values for the y and the y for the x



Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 22nd Jan 2007 17:03
Yea, the right word would've been "swap" probably

Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Jan 2007 19:02
Ah, I see.
Thanks

"I kören hörs de brummande busarna Björnligan och Gondolen"
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 23rd Jan 2007 05:56 Edited at: 23rd Jan 2007 05:56
It's called an "inverse" . When you switch x and y and/or mirror over the line y=x

Pirates of Port Royale
Live the life of a pirate.
Chily Dog
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: U.S.A.
Posted: 23rd Jan 2007 07:19
Would this be for calculus, as in moving a conic section around the graph?
El Goorf
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Uni: Manchester, Home: Dunstable
Posted: 23rd Jan 2007 10:34
at first i thought he meant volumes of a rotation

this works by squaring the function, integrating, and then multiplying by pi

after that, divide by a quarter to get 90 degrees, ie 90/360.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 26th Jan 2007 20:13
Or you could convert the function to a polor function, add 90 degrees (0.5*pi) to theta, and then convert it back to an x/y function

Xander Moser - Bolt Software - Firewall
El Goorf
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Uni: Manchester, Home: Dunstable
Posted: 27th Jan 2007 12:50 Edited at: 27th Jan 2007 12:52
correction... multiply by a quater*

to rotate a graph by 90 degrees in the other sense, you just multiply the gradient by 1/-1

Login to post a reply

Server time is: 2024-11-18 04:34:10
Your offset time is: 2024-11-18 04:34:10