# HG changeset patch # User Eris Caffee # Date 1317232437 18000 # Node ID 5377337c7de098bcfb875c3ff631d12cd4c0b463 # Parent 3788625551898faad1b86b8ac6e723f6f9af69ed Updated comments. diff -r 378862555189 -r 5377337c7de0 include/Vector.h --- a/include/Vector.h Wed Sep 28 12:48:42 2011 -0500 +++ b/include/Vector.h Wed Sep 28 12:53:57 2011 -0500 @@ -80,13 +80,25 @@ // typedef Vector4 Vector4d; // // + // // Scalar multiplication and division are overloaded. Why? // I'm not sure I need this. The idea is to support all likely scalar // types without having to rely on implicit or explicity type conversion, // especially not a conversion that might result in loss of precision. // Multiplying a float Vector by a double scala, for example. // Is there a better way to do this? - + // + // + // + // I suppose I could make this into a single Vector template on two parameters + // template class Vector + // { + // T v[N]; + // + // etc... + // + // This might buy perfect generality, but it would come at the expense of + // loops in all of the code, so I don't think it would really be worth it. /////////////////////////////////////////////////////////////////////////////