square

returns specified size square frame coordinates set.

the origin is (0, 0).

for example

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

Return

Set<CoordinateComponent> set of frame coordinates.

Parameters

size

size of square frame

dx

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

dy

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