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