magpie.pixel.get_square
- magpie.pixel.get_square(xmin, xmax, ymin, ymax[, steps=40])
Returns the coordinates of the perimeter of a rectangle.
- Parameters
- xminfloat
Minimum x-value.
- xmaxfloat
Maximum x-value.
- yminfloat
Minimum y-value.
- ymaxfloat
Maximum y-value.
- stepsint, optional
Number of divisions across each line segment, default = 4.
- Returns
- x, yarray
Perimeter coordinates of a rectangle.