Skip to content

Instantly share code, notes, and snippets.

@antoncrombach
antoncrombach / poisson_disc_sampling.py
Last active December 22, 2016 23:01
Fast O(n) sampling of points on a 2D plane.
"""
Copyright (C) 2016 Anton Crombach (anton.crombach@gmail.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Minimal style for grant proposals</title>
<!--<id>http://csl.mendeley.com/styles/20448741/minimal-grant-proposals</id>-->
<id>http://www.zotero.org/styles/minimal-grant-proposals</id>
<link href="http://www.zotero.org/styles/minimal-grant-proposals" rel="self"/>
<author>
<name>Anton Crombach</name>
<email>anton.crombach@gmail.com</email>