squareFill

fun squareFill(size: Int, dx: Int = 0, dy: Int = 0, safeTrim: Boolean = true): Set<CoordinateComponent>

returns specified size square coordinates set.

the origin is (0, 0).

for example

val three = CoordinateComponent.square(3)
// xxx
// xxx
// xxx
// 'x' means a coordinate what is contained a result.

Return

Set set of filled coordinates.

Since

5.0.7

Parameters

size

size of square frame

dx

initial x coordinate used to calculate. (default = 0)

dy

initial y coordinate used to calculate. (default = 0)

safeTrim

trims coordinates what are out of the CustomCrafter's gui range. (default = true)