|
Boost Users : |
Subject: Re: [Boost-users] boost random in 2 dimensions
From: Gabriel Redner (gredner_at_[hidden])
Date: 2013-01-25 12:50:45
To generate uniformly-distributed random points on a flat plane, just
draw two uniformly-distributed floats for your two coordinates. You
don't have to do anything special, which is why the library doesn't
provide anything for this. The reason uniform_on_sphere exists is
because that problem does not have a trivial solution.
-Gabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net