Java Program to Find Angle of Intersection of Two Circles Having Their Centers D Distance Apart
import java.io.*;
class Main
{
public static void main(String [] args)
{
double R1 = 3;
double R2 = 4;
double D = 5;
// formula to find angle of intersection
double a = (R1*R1 +R2*R2-D*D)/(2*R1*R2);
System.out.println("The angle of intersection of 2 circle is " + a + " rad");
}
}
Output:
The angle of intersection of 2 circle is 0.0 rad
