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

No commit message

No commit message
parent 6f3de874
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -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{