00001 /* Copyright (c) 2005 Arachi, Inc. and Stanford University. 00002 * 00003 * Permission is hereby granted, free of charge, to any person obtaining 00004 * a copy of this software and associated documentation files (the 00005 * "Software"), to deal in the Software without restriction, including 00006 * without limitation the rights to use, copy, modify, merge, publish, 00007 * distribute, sublicense, and/or sell copies of the Software, and to 00008 * permit persons to whom the Software is furnished to do so, subject 00009 * to the following conditions: 00010 * 00011 * The above copyright notice and this permission notice shall be included 00012 * in all copies or substantial portions of the Software. 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00015 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00016 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00017 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00018 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00019 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00020 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00021 */ 00022 00023 #ifndef _taoVar_h 00024 #define _taoVar_h 00025 00026 #include "deMath.h" 00027 #include "taoDVar.h" 00028 00035 class taoVarDOF1 : public taoDVar 00036 { 00037 public: 00038 deFloat _Q; 00039 deFloat _dQ; 00040 deFloat _ddQ; 00041 deFloat _Tau; 00042 }; 00043 00050 class taoVarSpherical : public taoDVar 00051 { 00052 public: 00053 deQuaternion _Q; 00054 deVector3 _dQ; 00055 deVector3 _ddQ; 00056 deVector3 _Tau; 00057 deVector3 _dQrotated; 00058 }; 00059 00060 #endif // _taoVar_h