From 8da1912fff676c9fae971ef68147788d5ebeae97 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 7 Sep 2021 15:47:01 +0800 Subject: [PATCH] add _pt3_hash --- src/__comm__/_pt3_hash.scad | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/__comm__/_pt3_hash.scad diff --git a/src/__comm__/_pt3_hash.scad b/src/__comm__/_pt3_hash.scad new file mode 100644 index 00000000..4b24c403 --- /dev/null +++ b/src/__comm__/_pt3_hash.scad @@ -0,0 +1,2 @@ +function _pt3_hash(number_of_buckets) = + function(p) floor(abs(p * [73856093, 19349669, 83492791])) % number_of_buckets; \ No newline at end of file