-
-
Notifications
You must be signed in to change notification settings - Fork 82
dtl::find::GetLargestSquareAreaSize (発見クラス)
Kasugaccho edited this page Aug 23, 2019
·
1 revision
<DTL/Find/GetLargestSquareAreaSize.hpp>
namespace dtl::find {
template <typename T>
class GetLargestSquareAreaSize;
}
※ T
は1bit以上の型
機能名 | 対応 |
---|---|
非長方形Matrix | 不可 |
#include <DTL.hpp>
#include <cstdint>
#include <array>
#include <iostream>
int main() {
using shape_t = std::uint_fast8_t;
std::array<std::array<shape_t, 16>, 12> matrix{ {} };
dtl::shape::CellularAutomatonIsland<shape_t>(1, 0, 2, 0.4).draw(matrix);
std::cout << dtl::find::GetLargestSquareAreaSize<shape_t>(0).draw(matrix) << '\n';
dtl::shape::Rect<shape_t>(dtl::find::GetLargestSquareArea<shape_t>(0).draw(matrix), 2).draw(matrix);
dtl::console::OutputString<shape_t>("**", "//", "##").draw(matrix);
return 0;
}
25
********************************
******************//////////****
****//************////////////**
****////////********////********
**////////////**//****////////**
******//**//**//////////****//**
****//##########//////**********
**//**##########****************
**//**##########****************
******##########****************
******##########****************
********************************
Copyright (c) 2018-2021 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)