Results 1 to 10 of 10

Thread: [RESOLVED] Calculate point on cirlce

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Re: Calculate point on cirlce

    Well..everything outside sounds nice But if that doesnt work, lets say the radius is 500 . The lines starts at circle.height / 2..Height of the circle equals the diameter (1000)

    The angle of the lines..well..now its just 1/4 and 3/4 from the top..dunno the angle

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Calculate point on cirlce

    sounds like you only know the end point of the red lines (Y-Value is 1/4 or 3/4 of the circles diameter and I guess the end value for the X-value is in both cases 0.)
    If the red lines shall end at the circle, the X-value can't be 0.


    Try it with some trigonometry.
    for the top line you have: Start point at (Diameter, Diameter/2) end point at (0, Diameter/4). The difference in Y-Value is Diameter/4, this value is 2*tan (Angle between Line and horizontal diameter of circle).

    Having got this angle, you can calculate the sinus and cosinus to compute the corrrect values for the end points.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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