step/stepcore
vector.h
Go to the documentation of this file.00001 /* This file is part of StepCore library. 00002 Copyright (C) 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com> 00003 00004 StepCore library is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 StepCore library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with StepCore; if not, write to the Free Software 00016 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00019 #ifndef STEPCORE_VECTOR_H 00020 #define STEPCORE_VECTOR_H 00021 00022 #include <Eigen/Array> 00023 #include <QMetaType> 00024 00025 namespace StepCore 00026 { 00027 00029 typedef Eigen::Vector2d Vector2d; 00031 typedef Eigen::Vector3d Vector3d; 00032 00034 typedef Eigen::Vector2i Vector2i; 00036 typedef Eigen::Vector3i Vector3i; 00037 00038 typedef Eigen::VectorXd VectorXd; 00039 00040 } // namespace StepCore 00041 00042 // XXX: move it to types.h 00043 Q_DECLARE_METATYPE(StepCore::Vector2d) 00044 Q_DECLARE_METATYPE(StepCore::Vector3d) 00045 Q_DECLARE_METATYPE(StepCore::Vector2i) 00046 Q_DECLARE_METATYPE(StepCore::Vector3i) 00047 00048 #endif 00049
KDE 4.5 API Reference