00001 /* 00002 * lib/numerics/2d/vector2.cc 00003 * 00004 * 2d vector template. 00005 * 00006 * Copyright (c) 2004 by Wolfgang Wieser ] wwieser (a) gmx <*> de [ 00007 * 00008 * This file may be distributed and/or modified under the terms of the 00009 * GNU General Public License version 2 as published by the Free Software 00010 * Foundation. (See COPYING.GPL for details.) 00011 * 00012 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00013 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00014 * 00015 */ 00016 00017 #include "vector2.h" 00018 00019 namespace NUM // numerics 00020 { 00021 00022 // Initialize static members: 00023 template<> const Vector2<dbl> Vector2<dbl>::UX(1,0); 00024 template<> const Vector2<dbl> Vector2<dbl>::UY(0,1); 00025 template<> const Vector2<dbl> Vector2<dbl>::Null(0,0); 00026 00027 // Initialize static members: 00028 template<> const Vector2<flt> Vector2<flt>::UX(1,0); 00029 template<> const Vector2<flt> Vector2<flt>::UY(0,1); 00030 template<> const Vector2<flt> Vector2<flt>::Null(0,0); 00031 00032 } // end of namespace NUM