Loading LrLightPlane.cpp +7 −8 Original line number Diff line number Diff line Loading @@ -72,14 +72,13 @@ bool LrLightPlane::operator != (const LrLightPlane& source) LrPoint LrLightPlane::getPos() const { LrVector v( 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) ); LrPoint pt = LrPoint::translate(pt,v); return LrPoint(getMat()*pt); ))); } unsigned int LrLightPlane::getNbRay() const{ Loading Loading
LrLightPlane.cpp +7 −8 Original line number Diff line number Diff line Loading @@ -72,14 +72,13 @@ bool LrLightPlane::operator != (const LrLightPlane& source) LrPoint LrLightPlane::getPos() const { LrVector v( 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) ); LrPoint pt = LrPoint::translate(pt,v); return LrPoint(getMat()*pt); ))); } unsigned int LrLightPlane::getNbRay() const{ Loading