Skip to content

Swift implementation of Poisson disk sampling algorithm

Notifications You must be signed in to change notification settings

maveric94/PoissonDiskSampling

Repository files navigation

PoissonDiskSampling

Description

Swift implementation of Poisson disk sampling algorithm

Usage

import PoissonDiskSampling

let radius: CGFloat = 50
let size = CGSize(width: 1000, height: 1000)
let points = PoissonDiskSampling().sample(radius: radius, in: size)

Installation

SPM

.package(url: "https://github.com/maveric94/PoissonDiskSampling.git", .upToNextMajor(from: "1.0.0"))

About

Swift implementation of Poisson disk sampling algorithm

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages