| [ QuizWit ] in KIDS 글 쓴 이(By): Tesak ( ) 날 짜 (Date): 2001년 2월 1일 목요일 오후 03시 25분 30초 제 목(Title): Re: 구 위의 임의의 점 단위 입체각이 d\Omega = sin(theta) d\thetha d\phi = d(-cos(\theta))d\phi 이므로 \phi와 cos(\theta)을 균일하게 뿌려주면 되겠죠. 즉 \theta = cos^{-1}(rand(-1,1)) \phi = rand(0,360) 한 후, P(sin(\theta)cos(\phi), sin(\theta)sin(\phi), cos(\theta)) 하면 됩니다. |