grid_positions: Generate a 2d grid in [0,1]^2 of given size.

Description Usage Arguments Value

View source: R/grid_positions.R

Description

Generates a matrix containing the positions of the points of an equidistant 2d grid in [0,1]^2.

Usage

1

Arguments

n

Integer giving one dimension of the grid.

m

integer giving the other dimension of the grid.

Value

A (nm)x2 grid containing the positions of the desired grid.


WSGeometry documentation built on Dec. 15, 2021, 1:08 a.m.