Generates the coordinates around a grid boundary, with a coordinate for each grid cell corner.
vaster_boundary(dimension, extent = NULL)
matrix of xy coordinates
The orientation is starts along the bottom and goes counter-clockwise.
vaster_boundary(c(3, 4))
#> xc
#> [1,] 0 0
#> [2,] 1 0
#> [3,] 2 0
#> [4,] 3 0
#> [5,] 3 4
#> [6,] 3 3
#> [7,] 3 2
#> [8,] 3 1
#> [9,] 3 0
#> [10,] 3 4
#> [11,] 2 4
#> [12,] 1 4
#> [13,] 0 4
#> [14,] 0 0
#> [15,] 0 1
#> [16,] 0 2
#> [17,] 0 3
#> [18,] 0 4
plot(vaster_boundary(c(36, 18), c(-180, 180, -90, 90)))