Sign in to follow this  
asdfwe

arc help

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this