changeset 8:5377337c7de0

Updated comments.
author Eris Caffee <discordia@eldalin.com>
date Wed, 28 Sep 2011 12:53:57 -0500
parents 378862555189
children 81d2aa42a860
files include/Vector.h
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/include/Vector.h	Wed Sep 28 12:48:42 2011 -0500
     1.2 +++ b/include/Vector.h	Wed Sep 28 12:53:57 2011 -0500
     1.3 @@ -80,13 +80,25 @@
     1.4     // typedef Vector4<double> Vector4d;
     1.5     //
     1.6     //
     1.7 +   //
     1.8     // Scalar multiplication and division are overloaded.  Why?
     1.9     // I'm not sure I need this.  The idea is to support all likely scalar
    1.10     // types without having to rely on implicit or explicity type conversion,
    1.11     // especially not a conversion that might result in loss of precision.
    1.12     // Multiplying a float Vector by a double scala, for example.
    1.13     // Is there a better way to do this?
    1.14 -
    1.15 +   //
    1.16 +   //
    1.17 +   //
    1.18 +   // I suppose I could make this into a single Vector template on two parameters
    1.19 +   // template <class T, unsigned int N> class Vector
    1.20 +   //    {
    1.21 +   //    T v[N];
    1.22 +   //
    1.23 +   //    etc...
    1.24 +   //
    1.25 +   // This might buy perfect generality, but it would come at the expense of
    1.26 +   // loops in all of the code, so I don't think it would really be worth it.
    1.27  
    1.28  
    1.29     /////////////////////////////////////////////////////////////////////////////