static double distanceFromOrigin(Point point) { return math.sqrt(math.pow(point.x, 2) + math.pow(point.y, 2)); }