Description Usage Arguments Details Value Examples
Create a grid of points within a polygon (DON'T USE – doesn't work correctly. See plot in examples.)
1 | polygon_grid(N, NV, vertices)
|
N |
The number of subintervals each side should be divided into i.e. there are (N+1) points on a side. |
NV |
The number of vertices in the polygon. |
vertices |
A vector of length |
Code taken from https://people.sc.fsu.edu/~jburkardt/cpp_src/polygon_grid/polygon_grid.html.
Returns a matrix with the x and y positions of each point in the grid.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.