#include "ui/gfx/geometry/rect_conversions.h"
#include <algorithm>
#include <cmath>
#include "base/check.h"
#include "base/numerics/safe_conversions.h"
namespace gfx {
namespace {
int FloorIgnoringError(float f, float error) { … }
int CeilIgnoringError(float f, float error) { … }
}
Rect ToEnclosingRect(const RectF& r) { … }
Rect ToEnclosingRectIgnoringError(const RectF& r, float error) { … }
Rect ToEnclosedRect(const RectF& rect) { … }
Rect ToEnclosedRectIgnoringError(const RectF& r, float error) { … }
Rect ToNearestRect(const RectF& rect) { … }
bool IsNearestRectWithinDistance(const gfx::RectF& rect, float distance) { … }
gfx::Rect ToRoundedRect(const gfx::RectF& rect) { … }
Rect ToFlooredRectDeprecated(const RectF& rect) { … }
}