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 7 of 7

Thread: Closest Point of Approach (CPA) mathematical formula in ship radar

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy Closest Point of Approach (CPA) mathematical formula in ship radar

    Hello guys,

    I recently searching for mathematical formula to find closest point of approach (CPA) between own ship and other ship to be applied to my radar ship program and I can't find the correct ways to calculates it.

    anybody know what are the correct formula besides plotting in manually?

    any mathematical formula or coding?

    thank you very much for anyone that help me. sorry for my bad english.


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    939
    Thanks
    6
    Thanked 202 Times in 178 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    Wikipedia has an article on the distance from a point to a line.

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    Thanks pbrockway2 for the replies.

    Anyway, that's not what I want to solve. Closest Point of Approach (CPA) involves speed, course, time and others (maybe) to get the answers. the problem is I don't know what the correct FORMULA to get the answer right.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,010
    Thanks
    52
    Thanked 2,276 Times in 2,247 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    When I studied navigation, we didn't have a formula for solving that problem. The solution was found by some sort of vector addition(???) using a special drawing pad, parallel rulers, compass and dividers. This was pre-PC.
    Problem: Given the positions of two ships, their courses and speeds, find the CPA. I can't remember any details on how to find the solution.
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    syamilsynz (April 7th, 2013)

  6. #5
    Junior Member
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    later if you remember the details, maybe you can share with us. we will appreciate it..

  7. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,010
    Thanks
    52
    Thanked 2,276 Times in 2,247 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    if you remember the details
    The details are long gone.
    I googled the topic and found a pdf that describes the technique as I vaguely remember it.
    There was no formula used. The solution was found with manual vector manipulation.
    If you don't understand my answer, don't ignore it, ask a question.

  8. #7
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    939
    Thanks
    6
    Thanked 202 Times in 178 Posts

    Default Re: Closest Point of Approach (CPA) mathematical formula in ship radar

    The solution was found with manual vector manipulation
    If you subtract one ship's position from another (to find the vector displacement) the problem becomes one of minimising this displacement. But the displacements plotted at various times form a line and the dynamic problem of finding the CPA reduces to the purely geometric one of finding the distance between this line and the origin (the point of zero displacement). That's the relevance of the Wikipedia link.

Similar Threads

  1. Mathematical problem with Money amounts
    By craigjlner in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 19th, 2013, 03:12 AM
  2. Search closest distance to an array of objects
    By Dreamer999 in forum Collections and Generics
    Replies: 1
    Last Post: October 10th, 2012, 12:32 PM
  3. Help moving the ship in Space invaders
    By Prox in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 6th, 2011, 03:16 AM
  4. Java:Evaluation of Mathematical Expression only from left to right only.
    By deepakl_2000 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: July 15th, 2011, 07:35 AM
  5. closest pair algorithm implementation
    By srose in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 24th, 2011, 01:11 PM

Tags for this Thread