Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: I need help with coordinate x y!

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help with coordinate x y!

    hi guys,
    I am planning a race simulator car and I have a problem to get the x and y coordinates from the graph (or circuit). I explain the problem better.
    If I for example, drawing an arc using the library DRAW2D how do I get all the points in x and y coordinates of that arc?
    Do you have any suggestions? Algorithms, libraries or functions.....


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need help with coordinate x y!

    What are the parameters for drawing the arc? I assume that you have the x&y values for the start and end of the arc. Can the other parameters be used to get the points on the arc?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I need help with coordinate x y!

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

  4. #4
    Junior Member
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help with coordinate x y!

    i know the coordinate of start and end point, the radius and the angle in radiant.

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need help with coordinate x y!

    Those values with some trigonometry should give you the values you want.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. All permutations of 2 coordinate int array
    By zach181818 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 13th, 2014, 03:07 AM
  2. Assign variable to coordinate pair for GUI
    By jcfor3ver in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 10th, 2013, 04:57 AM
  3. coordinate double -> pixel int
    By Tchoumo in forum AWT / Java Swing
    Replies: 7
    Last Post: October 12th, 2013, 04:15 PM
  4. Add MouseClickEvent for a X/Y-Coordinate (JFrame)
    By Student_27 in forum AWT / Java Swing
    Replies: 3
    Last Post: May 9th, 2013, 10:57 AM
  5. How to find Object in coordinate system
    By Eldarmk2 in forum Java Theory & Questions
    Replies: 5
    Last Post: July 9th, 2012, 11:09 PM