Bug in squareToDiskConcentric() pointed out by Milos

metadata
Wenzel Jakob 2011-06-23 17:57:13 +02:00
parent 9d9a6dd5e4
commit ebd8a80f74
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ Point2 squareToDiskConcentric(const Point2 &sample) {
if (r1<r2)
coords = Point2(-r1, (M_PI/4.0f) * (4.0f + r2/r1));
else
coords = Point2(-r2, (M_PI/4.0f) * (6.0f- - r1/r2));
coords = Point2(-r2, (M_PI/4.0f) * (6.0f - r1/r2));
}
return Point2(
coords.x*std::cos(coords.y),