1314151617181920
public class Utils { public Angle twoPointsAngle2D( Point p1, Point p2 ) { double theta = Math.atan2(p2.getRealY() - p1.getRealY(), p2.getRealX() - p1.getRealX() ); Angle ret = Angles.get( theta, 0.0, 0.0 ); return ret; }