Java tutorial
//package com.java2s; public class Main { public static double calcRadian(double x, double y, double x2, double y2) { double radian = Math.atan2(x2 - x, y2 - y); return radian; } }