asp graphics

1. Junior Member
Join Date
Dec 1969
Posts
6

asp graphics

hey i need to be able to make circles, parabolas, hyperbolas, and ellipses on the fly with numbers from a form. i found asp canvas and it can do circles and ellipses but im not sure how to do parabolas and hyperbolas. anyone have any suggestions? thanks in advance, dave

2. Senior Member
Join Date
Dec 1969
Posts
549

There might be something out there that does it...

... but I doubt it. Have a look at the components on Aspin anyway, just in case:<BR><BR>http://www.aspin.com/home/components/graphics<BR><BR>How about learning the math(s) and plotting it yourself with any of the above?

3. Senior Member
Join Date
Dec 1969
Posts
16,931

Btw...

It&#039;s hyperbolae, not hyperbolas.<BR><BR>And also, equations such as those are very simple, expressed as parametric equations. For example, a circle which has the cartesian equation of something awful like y = r.cos[sin^(-1)[x/r]], where r is the radius (and that&#039;s just a PLAIN circle - putting in the offset is a different ball game), can be expressed as:<BR>x = r.sin(t) + x_offset<BR>y = r.cos(t) + y_offset<BR><BR>Simple, eh? Since all these equations are of the same family, they can be expressed similarly. I think that an ellipse is simply:<BR>x = (r_x).sin(t) + x_offset<BR>y = (r_y).sin(t) + y_offset<BR><BR>Once you have them in parametric form, simply increase t from 0 to 2*Pi and you have a full circle.<BR><BR>As for which KIND of hyperbolae, most of them can be expressed in cartesians as forms of:<BR>y = e^x<BR><BR>The others I can&#039;t remember off the top of my head, but they aren&#039;t impossible. Look them up.<BR><BR>Craig.

4. Senior Member
Join Date
Dec 1969
Posts
16,931

Also...

http://www-groups.dcs.st-and.ac.uk/~history/Curves/Curves.html<BR><BR>That&#039;s quite useful - both cartesian and parametric equations for all manner of curves/conics.<BR><BR>Craig.

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•