public static float GetHypoteneuseAngleRad(Point p1, Point p2) { return (float)(Math.Atan2(p2.Y - p1.Y, p2.X - p1.X)); }