Sorry if the title is confusing. I wasn't sure how to say it concisely.
I am working with JavaFX. I have made Circle objects that represent the orbital paths of planets in a
solar system. They have a transparent fill color, with white outlines.
I want to randomly choose the points to display the planets. However, I want each planet to be displayed somewhere along the white circle-outline indicating it's orbital path.
This means I need to find a way to gather a set of points that are exactly the same distance from the center of the circle-outline.
The only way I can think of to do this is to iterate through every point in the window that displays the solar system and check it's distance from the center.
I feel like there's probably a faster way for the program to find all the points at the same distance from the center. However, I am not the greatest at math, and I'm not sure how to implement it.
How can create a method that finds all the points X distance away from point Y and that runs more quickly than my brute-force method would?