pan(double r, double i), clear

angle calculation function
clear support for both windows (untested), linux