[{"name":"BoundingBox2d.Extra","comment":" Extra functionality for `BoundingBox2d` values.\n\n@docs poissonDiskSamples\n\n","unions":[],"aliases":[],"values":[{"name":"poissonDiskSamples","comment":" Create a [random generator](https://package.elm-lang.org/packages/elm/random/latest/Random)\nfor a list of points within a given bounding box. Unlike `randomPoint`, this generator has the\nproperty that it will keep the points apart from each other and will therefore fill the bounding\nbox in a random, but relatively uniform way.\n\nThe first argument represents how many points to generate, however due to the nature of the algorithm\nthis acts more as a hint and it will generally generate slightly fewer points.\n\nFor comparison, here are some points generated by pure random sampling:\n\n![Random point sampling](https://ianmackenzie.github.io/elm-geometry-extra/1.0.0/BoundingBox2d/random-sampling.png)\n\nAnd here are some generated using Poisson disk sampling:\n\n![Poisson disk sampling](https://ianmackenzie.github.io/elm-geometry-extra/1.0.0/BoundingBox2d/poisson-disk-sampling.png)\n\n","type":"Basics.Int -> BoundingBox2d.BoundingBox2d units coordinates -> Random.Generator (List.List (Point2d.Point2d units coordinates))"}],"binops":[]},{"name":"QuadraticSpline2d.Extra","comment":" Extra functionality for `QuadraticSpline2d` values.\n\n@docs nearestPoint\n\n","unions":[],"aliases":[],"values":[{"name":"nearestPoint","comment":" Find the parameter value on a spline that is closest to a given point. You can combine this with\n`pointOn` to find the nearest point on the spline.\n\n    QuadraticSpline2d.nearestPoint spline p0\n        |> QuadraticSpline2d.pointOn spline\n\n","type":"QuadraticSpline2d.QuadraticSpline2d units coordinates -> Point2d.Point2d units coordinates -> Basics.Float"}],"binops":[]}]