poisson2d: Generate Poisson disk samples in 2D

View source: R/poisson.R

poisson2dR Documentation

Generate Poisson disk samples in 2D

Description

Generate Poisson disk samples in 2D

Usage

poisson2d(w = 10, h = 10, r = 2, k = 30L, verbosity = 0L)

Arguments

w, h

width and height of region

r

minimum distance between points

k

number of sample points to generate at each iteration. default 30

verbosity

Verbosity level. default: 0

Value

data.frame with x and y coordinates. Points are returned in the order in which they were generated.

Examples

pts <- poisson2d(w = 40, h = 40, r = 1)
plot(pts, asp = 1, ann = FALSE, axes = FALSE, pch = 19)

poissoned documentation built on Oct. 21, 2024, 5:07 p.m.