Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r545 - branches/itanium2/Core/Geometry


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r545 - branches/itanium2/Core/Geometry
  • Date: Tue, 13 Sep 2005 13:21:19 -0600 (MDT)

Author: bigler
Date: Tue Sep 13 13:21:18 2005
New Revision: 545

Modified:
   branches/itanium2/Core/Geometry/PointVector.h
Log:

Uhm, operator/(Vector) should divide, not multiply components.


Modified: branches/itanium2/Core/Geometry/PointVector.h
==============================================================================
--- branches/itanium2/Core/Geometry/PointVector.h       (original)
+++ branches/itanium2/Core/Geometry/PointVector.h       Tue Sep 13 13:21:18 
2005
@@ -146,7 +146,7 @@
     VectorT<T, Dim> operator/(const VectorT<T, Dim>& v) const {
       VectorT<T, Dim> result;
       for(int i=0;i<Dim;i++)
-        result.data[i] = data[i] * v.data[i];
+        result.data[i] = data[i] / v.data[i];
       return result;
     }
 




  • [MANTA] r545 - branches/itanium2/Core/Geometry, bigler, 09/13/2005

Archive powered by MHonArc 2.6.16.

Top of page