Skip to content

Commit 38fcc5d

Browse files
Update math.hpp
1 parent 7b31b7b commit 38fcc5d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/centurion/math.hpp

-5
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ class basic_rect final
461461
constexpr void offset_height(const value_type dh) noexcept { mRect.h += dh; }
462462

463463
[[nodiscard]] constexpr auto x() const noexcept -> value_type { return mRect.x; }
464-
465464
[[nodiscard]] constexpr auto y() const noexcept -> value_type { return mRect.y; }
466465

467466
[[nodiscard]] constexpr auto position() const noexcept -> point_type
@@ -470,7 +469,6 @@ class basic_rect final
470469
}
471470

472471
[[nodiscard]] constexpr auto width() const noexcept -> value_type { return mRect.w; }
473-
474472
[[nodiscard]] constexpr auto height() const noexcept -> value_type { return mRect.h; }
475473

476474
[[nodiscard]] constexpr auto size() const noexcept -> area_type
@@ -479,7 +477,6 @@ class basic_rect final
479477
}
480478

481479
[[nodiscard]] constexpr auto max_x() const noexcept -> value_type { return x() + width(); }
482-
483480
[[nodiscard]] constexpr auto max_y() const noexcept -> value_type { return y() + height(); }
484481

485482
[[nodiscard]] constexpr auto has_area() const noexcept -> bool
@@ -543,11 +540,9 @@ class basic_rect final
543540
}
544541

545542
[[nodiscard]] auto data() noexcept -> rect_type* { return &mRect; }
546-
547543
[[nodiscard]] auto data() const noexcept -> const rect_type* { return &mRect; }
548544

549545
[[nodiscard]] constexpr auto get() noexcept -> rect_type& { return mRect; }
550-
551546
[[nodiscard]] constexpr auto get() const noexcept -> const rect_type& { return mRect; }
552547

553548
private:

0 commit comments

Comments
 (0)