Results 1 to 6 of 6

Thread: Arc Degrees

Threaded View

  1. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: Arc Degrees

    I'll answer the questions in your diagram. It shouldn't be hard to convert to code.

    We're given a circle centered at (CX, CY) of radius R. There is an arc starting at (CX + R, CY) going counterclockwise a length L. The arc's angle D is related to the other parameters by L = DR, where D is measured in radians. [For instance, if L = 2*pi*R, L is the entire circumference, forcing D = 2*pi.] That is, D = L/R. The coordinates are then just

    (E, F) = (CX + R*cos(D), CY + R*sin(D))
    Last edited by jemidiah; Nov 8th, 2011 at 01:43 PM. Reason: Swapped notation to be consistent with the original post
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

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



Click Here to Expand Forum to Full Width