var searchIndex = {}; searchIndex["poisson"] = {"doc":"# Poisson-disk distribution generation","items":[[3,"PoissonDisk","poisson","Generates poisson-disk distribution in [0, 1]² area with O(N log N) time and space complexity relative to the number of samples generated.\nBased on Gamito, Manuel N., and Steve C. Maddock. "Accurate multidimensional Poisson-disk sampling." ACM Transactions on Graphics (TOG) 29.1 (2009): 8.",null,null],[3,"Sample","","Describes position of sample and radius of disk around it.",null,null],[12,"pos","","",0,null],[5,"calc_radius","","Calculates approximately needed radius from amount of points wanted and relative radius specified.\nPoints should be larger than 0.\nRelative radius should be ]0, 1].",null,{"inputs":[{"name":"u32"},{"name":"f64"}],"output":{"name":"f64"}}],[6,"Vec2","","",null,null],[11,"new","","Creates new PoissonDisk with random generator and radius specified.\nRadius should be ]0, √2 / 2]",1,{"inputs":[{"name":"r"},{"name":"f64"}],"output":{"name":"poissondisk"}}],[11,"perioditic","","Creates new peridiotic PoissonDisk with random generator, radius specified.\nRadius should be ]0, 0.5[",1,{"inputs":[{"name":"r"},{"name":"f64"}],"output":{"name":"poissondisk"}}],[11,"create","","Populates given vector with poisson-disk distribution [0, 1]²\nResulting samples will be a poisson-disk distribution iff given samples were already valid poisson-disk distribution.\nResulting samples will be a maximal poisson-disk distribution [0, 1]² iff given samples have same radius and are already valid poisson-disk distribution.",1,null],[11,"clone","","",0,null],[11,"new","","",0,{"inputs":[{"name":"vec2"},{"name":"f64"}],"output":{"name":"self"}}],[11,"get_radius","","",0,null],[11,"add","","",0,null],[11,"fmt","","",0,null]],"paths":[[3,"Sample"],[3,"PoissonDisk"]]}; initSearch(searchIndex);