Commit 1b3e213b authored by Lukas Werner's avatar Lukas Werner
Browse files

Fixed bug in coordinate to array index method

parent 1bde1e1a
......@@ -187,7 +187,7 @@ bool Raytracer::isPlaneVisible(const PlaneID plane, const Ray& ray) const {
* \return Array index.
*/
size_t Raytracer::coordinateToArrayIndex(size_t x, size_t y) const {
return y*pixelsVertical_ + x;
return y*pixelsHorizontal_ + x;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment