-
Notifications
You must be signed in to change notification settings - Fork 10
DTL.Range.BasicRect.SetPoint
sitRyo edited this page Jan 15, 2020
·
1 revision
// (1)
BasicRect SetPoint(uint value)
// (2)
BasicRect SetPoint(uint startX, uint startY)
(1) startX, startYにvalueを指定する。 (2) startX, pointYにそれぞれ個別の値を指定する。
(1), (2) 自分自身の参照値を返す。
投げない
Border border = new Border(5);
var matrix = new int[10, 10];
border.SetPoint(2);
border.Draw(matrix);
new OutputConsole().Draw(matrix);
5
5
5 5 5 5 5 0 0 0 0 0
5 0 0 0 5 0 0 0 0 0
5 0 0 0 5 0 0 0 0 0
5 0 0 0 5 0 0 0 0 0
5 5 5 5 5 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Copyright (c) 2017-2019 Kasugaccho. Copyright (c) 2018-2019 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)