diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
commit | 578cf43e9c8384aab463aa2a33c5be00e46dc999 (patch) | |
tree | 927262a92b7ff0365463327130de78722578aa03 /src/engine/graphics/matrix_impl.hpp | |
parent | ae15df6689b1245200f8a9eb074c59a200561e49 (diff) |
refactor: matrix add get_size method
Diffstat (limited to 'src/engine/graphics/matrix_impl.hpp')
-rw-r--r-- | src/engine/graphics/matrix_impl.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/graphics/matrix_impl.hpp b/src/engine/graphics/matrix_impl.hpp index 9105149..d2de795 100644 --- a/src/engine/graphics/matrix_impl.hpp +++ b/src/engine/graphics/matrix_impl.hpp @@ -82,6 +82,12 @@ auto Matrix<Element>::get_column_cnt() const noexcept -> std::uint32_t } template <typename Element> +auto Matrix<Element>::get_size() const noexcept -> Bounds +{ + return Bounds({.width = _column_cnt, .height = _row_cnt}); +} + +template <typename Element> auto Matrix<Element>::begin() const noexcept -> MatrixIterator<Element> { return MatrixIterator(_matrix, _column_cnt); |