Commit 79a19f38 authored by Emeric Verschuur's avatar Emeric Verschuur

--no commit message

--no commit message
parent 6f3de874
......@@ -72,14 +72,13 @@ bool LrLightPlane::operator != (const LrLightPlane& source)
LrPoint LrLightPlane::getPos() const
{
LrVector v(
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(1,1),
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(2,2),
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(3,3)
);
LrPoint pt = LrPoint::translate(pt,v);
return LrPoint(getMat()*pt);
return LrPoint(getMat()
* LrPoint::translate(LrPoint::ZERO,
LrVector(
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(1,1),
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(2,2),
(Real)(1.0 * rand()/RAND_MAX) * getMat().getCoeff(3,3)
)));
}
unsigned int LrLightPlane::getNbRay() const{
......
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