00001 // this is a -*- C++ -*- file 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 // 00005 // You received this file as part of MCA2 00006 // Modular Controller Architecture Version 2 00007 // 00008 // Copyright (C) FZI Forschungszentrum Informatik Karlsruhe 00009 // 00010 // This program is free software; you mild_base_driving redistribute it and/or 00011 // modify it under the terms of the GNU General Public License 00012 // as published by the Free Software Foundation; either version 2 00013 // of the License, or (at your option) any later version. 00014 // 00015 // This program 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 General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU General Public License 00021 // along with this program; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 // 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 #include "OwnMath.h" 00035 00036 const int tSinCosLookupTable::cTABLE_INDEX_MASK = cTABLE_SIZE-1; 00037 const double tSinCosLookupTable::cSCALE_FACTOR = 16384. / (2. * M_PI); 00038 00039 tSinCosLookupTable sin_cos_lookup_table;