#ifndef _VEC_H_ #define _VEC_H_ #include #include #include #include "Mat.h" template class Vec; template class Mat; /** * Vector class for class and simple data types * template with type and size of the vector * * @author Philipp Schoenberger * @copyright 2012 philipp schoenberger All rights reserved. * @license This project is released under the GNU Public License. */ template class Vec { public: /** * standard constructor */ Vec () { // initialize all elements with zero for (unsigned int i=0; i (const T tData) { for (unsigned int i=0; i (const T atData[SIZE]) { for (unsigned int i=0; i (const Vec &vec) { if (this==&vec) return; // nothing to do, it's me for (unsigned int i=0; i &operator = (const Vec &vec) { /// check if the L and R values are the same /// do nothing in this case if (this==&vec) return (*this); /// not the same values so copy content data for (unsigned int i=0; i &operator = (const T atData[SIZE]) { for (unsigned int i=0; i