Java tutorial
//package com.java2s; public class Main { public static double pointTotoDegrees(double x, double y) { return Math.toDegrees(Math.atan2(x, y)); } }