metadata
Wenzel Jakob 2011-07-19 18:53:15 +02:00
parent dbfca082b3
commit 42ce9799f6
1 changed files with 2 additions and 2 deletions

View File

@ -662,8 +662,8 @@ Vector squareToCone(Float cosCutoff, const Point2 &sample) {
}
Point2 squareToStdNormal(const Point2 &sample) {
Float tmp1 = std::sqrt(-2 * std::log(sample.x())),
tmp2 = 2 * M_PI * sample.y();
Float tmp1 = std::sqrt(-2 * std::log(sample.x)),
tmp2 = 2 * M_PI * sample.y;
return Point2(
tmp1 * std::cos(tmp2),
tmp1 * std::sin(tmp2)