|
mbsimflexiblebody
3.2.0
|
00001 /* Copyright (C) 2004-2011 MBSim Development Team 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 * Contact: thorsten.schindler@mytum.de 00018 */ 00019 00020 #ifndef REVCARDAN_H_ 00021 #define REVCARDAN_H_ 00022 00023 #include "mbsimFlexibleBody/utils/angles.h" 00024 00025 namespace MBSimFlexibleBody { 00026 00032 class RevCardan : public Angles { 00033 public: 00037 RevCardan(); 00038 00042 virtual ~RevCardan(); 00043 00044 /* INTERFACE OF ROTATION */ 00045 virtual int getqSize() const { return 3; } 00046 /********************************************************/ 00047 00048 /* INTERFACE OF ANGLES */ 00049 virtual fmatvec::Vec computet(const fmatvec::Vec& q) const; 00050 virtual fmatvec::Vec computen(const fmatvec::Vec& q) const; 00051 virtual fmatvec::Vec computeb(const fmatvec::Vec& q) const; 00052 virtual fmatvec::Vec computentil(const fmatvec::Vec& q) const; 00053 virtual fmatvec::Vec computebtil(const fmatvec::Vec& q) const; 00054 virtual fmatvec::SqrMat computetq(const fmatvec::Vec& q) const; 00055 virtual fmatvec::SqrMat computenq(const fmatvec::Vec& q) const; 00056 virtual fmatvec::SqrMat computebq(const fmatvec::Vec& q) const; 00057 virtual fmatvec::SqrMat computentilq(const fmatvec::Vec& q) const; 00058 virtual fmatvec::SqrMat computebtilq(const fmatvec::Vec& q) const; 00059 virtual fmatvec::Mat computetq2(const fmatvec::Vec& q) const; 00060 virtual fmatvec::Mat computenq2(const fmatvec::Vec& q) const; 00061 virtual fmatvec::Mat computebq2(const fmatvec::Vec& q) const; 00062 virtual fmatvec::Mat computentilq2(const fmatvec::Vec& q) const; 00063 virtual fmatvec::Mat computebtilq2(const fmatvec::Vec& q) const; 00064 /********************************************************/ 00065 }; 00066 00067 } 00068 00069 #endif /*REVCARDAN_H_*/ 00070
1.8.0