Does it mean rejecting the points that are not in the circle? like uniform sampling the square, and they throw the ones not in circle out?
CMUScottie
Yes, I think you are right. Just do uniform sampling in the square and reject the points outside the circle.
triangle
I'm thinking we can do a similar rejection sampling to sample over a unit a sphere. We can sample from all 3 axes in ranges [-1, 1]. If euclidean distance is greater than 1 we reject it. That way all the points we keep have radius <= 1 (inside the sphere).
Does it mean rejecting the points that are not in the circle? like uniform sampling the square, and they throw the ones not in circle out?
Yes, I think you are right. Just do uniform sampling in the square and reject the points outside the circle.
I'm thinking we can do a similar rejection sampling to sample over a unit a sphere. We can sample from all 3 axes in ranges [-1, 1]. If euclidean distance is greater than 1 we reject it. That way all the points we keep have radius <= 1 (inside the sphere).