Class Circle

    • Method Detail

      • intersection

        public static Point2D[] intersection​(Point2D center0,
                                             double radius0,
                                             Point2D center1,
                                             double radius1)
        Elegant intersection algorithm from http://astronomy.swin.edu.au/~pbourke/geometry/2circle/.
        Parameters:
        center0 - Point2D; the center of the first circle
        radius0 - double; the radius of the first circle
        center1 - Point2D; the center of the second circle
        radius1 - double; the radius of the second circle
        Returns:
        the intersection