Fixup de776a4065a0611c5da7e1bef7fdbb53fa071742

This commit is contained in:
Charles Dang 2024-09-03 09:01:56 -04:00
parent b8c6edc53c
commit e437e205cb

View File

@ -103,7 +103,7 @@ public:
/** The center point of the rectangle, accounting for origin. */
constexpr point center() const
{
return {(x + w) / 2, (y + h) / 2};
return {x + w / 2, y + h / 2};
}
/** False if both w and h are > 0, true otherwise. */