Searched refs:original_box (Results 1 – 1 of 1) sorted by relevance
303 inline BoundingSquare GetCenteredSquare(const BoundingBox& original_box, in GetCenteredSquare() argument305 const float width_diff = (original_box.GetWidth() - size) / 2.0f; in GetCenteredSquare()306 const float height_diff = (original_box.GetHeight() - size) / 2.0f; in GetCenteredSquare()307 return BoundingSquare(original_box.left_ + width_diff, in GetCenteredSquare()308 original_box.top_ + height_diff, in GetCenteredSquare()312 inline BoundingSquare GetCenteredSquare(const BoundingBox& original_box) { in GetCenteredSquare() argument314 original_box, MIN(original_box.GetWidth(), original_box.GetHeight())); in GetCenteredSquare()