, trig
Point pl = getCharacterLox();
Point mouse = getMouseLoc();
double cos = (mouse.getX()-pl.getX());
double sin = (mouse.getY()-pl.getY());
cos/=Math.hypot(cos,sin);
double angle = Math.copySign(Math.acos(cos),sin);
, : acos 0 PI, sin , , sin 0, +0,0, 0 PI