PHP help needed for 3D pie charts.
November 8, 2004 9:25 AM
Subscribe
I'm writing some php functions to produce graphics of 3D pie charts. I don't remember enough trig to actually pull this off. [more inside]
First - Yes, I know JpGraph does this. But I'd really prefer to do it the hard way.
I'm well versed in how to create graphics with php, but I lack enough knowledge of trig to even know where to look for the equation I need. Googling has led me to several good sites with trig tutorials, but I don't want or need to spend the next week relearning trig just to get one equation.
I need to solve:
I know the height, width, and center point of an ellipse. I need to know the coordinates of an arbitrary point on that ellipse if I know the angle of a line running from the center to that point.
I'm sure I could Google for that, or go down to the book store and look it up, but I don't even know what it's called. Please help. Pointers to what I'm looking for would be great. Ditto for advise on other trig stuff I need but don't know it.
posted by y6y6y6 to computers & internet (7 comments total)
posted by cardboard at 9:28 AM on November 8, 2004