OpenWalnut  1.4.0
WVectorFixed.h
00001 //---------------------------------------------------------------------------
00002 //
00003 // Project: OpenWalnut ( http://www.openwalnut.org )
00004 //
00005 // Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
00006 // For more information see http://www.openwalnut.org/copying
00007 //
00008 // This file is part of OpenWalnut.
00009 //
00010 // OpenWalnut is free software: you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as published by
00012 // the Free Software Foundation, either version 3 of the License, or
00013 // (at your option) any later version.
00014 //
00015 // OpenWalnut is distributed in the hope that it will be useful,
00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 // GNU Lesser General Public License for more details.
00019 //
00020 // You should have received a copy of the GNU Lesser General Public License
00021 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
00022 //
00023 //---------------------------------------------------------------------------
00024 
00025 #ifndef WVECTORFIXED_H
00026 #define WVECTORFIXED_H
00027 
00028 // defined in WMatrixFixed
00029 #include "WMatrixFixed.h"
00030 
00031 // Here: only some typedefs for vectors get defined
00032 
00033 // Double vectors
00034 typedef WMatrixFixed< double, 2, 1 > WVector2d;
00035 typedef WMatrixFixed< double, 3, 1 > WVector3d;
00036 typedef WMatrixFixed< double, 4, 1 > WVector4d;
00037 typedef WMatrixFixed< double, 1, 2 > WVectorRow2d;
00038 typedef WMatrixFixed< double, 1, 3 > WVectorRow3d;
00039 typedef WMatrixFixed< double, 1, 4 > WVectorRow4d;
00040 
00041 // Float vectors
00042 typedef WMatrixFixed< float, 2, 1 > WVector2f;
00043 typedef WMatrixFixed< float, 3, 1 > WVector3f;
00044 typedef WMatrixFixed< float, 4, 1 > WVector4f;
00045 typedef WMatrixFixed< float, 1, 2 > WVectorRow2f;
00046 typedef WMatrixFixed< float, 1, 3 > WVectorRow3f;
00047 typedef WMatrixFixed< float, 1, 4 > WVectorRow4f;
00048 
00049 // Integer vectors
00050 typedef WMatrixFixed< int, 2, 1 > WVector2i;
00051 typedef WMatrixFixed< int, 3, 1 > WVector3i;
00052 typedef WMatrixFixed< int, 4, 1 > WVector4i;
00053 typedef WMatrixFixed< int, 1, 2 > WVectorRow2i;
00054 typedef WMatrixFixed< int, 1, 3 > WVectorRow3i;
00055 typedef WMatrixFixed< int, 1, 4 > WVectorRow4i;
00056 
00057 #endif  // WVECTORFIXED_H