@@ -0,0 +1,1489 @@
+package com.haxademic.sketch.test;%0A%0Aimport com.haxademic.core.app.AppSettings;%0Aimport com.haxademic.core.app.P;%0Aimport com.haxademic.core.app.PAppletHax;%0Aimport com.haxademic.core.draw.image.ImageUtil;%0Aimport com.haxademic.core.draw.util.DrawUtil;%0Aimport com.haxademic.core.file.FileUtil;%0Aimport com.haxademic.core.math.MathUtil;%0A%0Aimport processing.core.PGraphics;%0Aimport processing.core.PImage;%0A%0Apublic class AtanTest%0Aextends PAppletHax %7B%0A%09public static void main(String args%5B%5D) %7B PAppletHax.main(Thread.currentThread().getStackTrace()%5B1%5D.getClassName()); %7D%0A%0A%09PImage img;%0A%09PGraphics pg;%0A%0A%0A%09protected void overridePropsFile() %7B%0A%09%09p.appConfig.setProperty( AppSettings.WIDTH, 640 );%0A%09%09p.appConfig.setProperty( AppSettings.HEIGHT, 640 );%0A%09%09p.appConfig.setProperty( AppSettings.SHOW_STATS, true );%0A%09%7D%0A%0A%09public void setup() %7B%0A%09%09super.setup();%0A%09%09img = p.loadImage(FileUtil.getFile(%22images/bread-large.png%22));%0A%09%09pg = ImageUtil.imageToGraphics(p, img);%0A%09%7D%0A%0A%09public void drawApp() %7B%0A%09%09background(100,100,255);%0A%09%09p.pushMatrix();%0A%09%09DrawUtil.setDrawCenter(p);%0A%09%09p.translate(p.width/2, p.height/2);%0A%09%09float radsFromCenter = MathUtil.getRadiansToTarget(p.width/2, p.height/2, p.mouseX, p.mouseY);%0A%09%09P.println(%22cos (x): %22,P.cos(radsFromCenter), %22sin (y)%22,P.sin(radsFromCenter), %22angle: %22, MathUtil.radiansToDegrees(radsFromCenter));%0A%0A%09%09float radsFromMouse = MathUtil.getRadiansToTarget(p.mouseX, p.mouseY, p.width/2, p.height/2);%0A%09%09p.rotate(-radsFromCenter);%0A%09%09p.image(pg, 0, 0);%0A%09%09p.popMatrix();%0A%09%7D%0A%0A%7D%0A%0A

Add atan() test app