changeset 2385 | 096d83158d41 |
parent 2374 | b59a17034ffa |
child 2386 | 81b47fc5c444 |
9:0f57753dd885 | 10:464f24c76fd7 |
---|---|
752 /// |
752 /// |
753 |
753 |
754 ///@{ |
754 ///@{ |
755 |
755 |
756 /// Uniform distribution on the full unit circle. |
756 /// Uniform distribution on the full unit circle. |
757 dim2::Point<double> ball2() |
757 dim2::Point<double> disc() |
758 { |
758 { |
759 double V1,V2; |
759 double V1,V2; |
760 do { |
760 do { |
761 V1=2*real<double>()-1; |
761 V1=2*real<double>()-1; |
762 V2=2*real<double>()-1; |
762 V2=2*real<double>()-1; |