Description Usage Arguments Details Value Examples
View source: R/triangle_grid.R
Create a grid of points within a triangle
1 | triangle_grid(N, vertices)
|
N |
The number of subintervals each side should be divided into i.e. there are (N+1) points on a side. |
vertices |
A vector of length six giving the (x,y) coordinates of each vertex of the triangle or a matrix with two rows and three columns of vertex coordinates. |
Code taken from https://people.sc.fsu.edu/~jburkardt/cpp_src/triangle_grid/triangle_grid.html.
Returns a matrix with the x and y positions of each point in the grid.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.