Jump to content
  • Advertisement
Sign in to follow this  
asdfwe

arc help

This topic is 3853 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
any arc will do
i just wanna connect the two points with an arc
let center be ((x1+x2)/2 , (y1+y2)/2 )

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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!