• Advertisement
Sign in to follow this  

arc help

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Depends on what you want it to look like. There are an infinite number of arcs between two points. You would really need a third point for your question to make sense.

Share this post


Link to post
Share on other sites
Quote:
Original post by asdfwe
any arc will do
i just wanna connect the two points with an arc
let center be ((x1+x2)/2 , (y1+y2)/2 )
It looks like you have the center figured out, and the radius is just |p1-p2|/2.

How to draw a circle in OpenGL (and other APIs) has been covered quite a few times on these forums, so I'd try searching the archives for 'OpenGL circle', or something of that sort. Then, just draw half of it :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement