mathutils.h

Go to the documentation of this file.
00001 /*
00002  *  The Mana World Server
00003  *  Copyright 2004 The Mana World Development Team
00004  *
00005  *  This file is part of The Mana World.
00006  *
00007  *  The Mana World  is free software; you can redistribute  it and/or modify it
00008  *  under the terms of the GNU General  Public License as published by the Free
00009  *  Software Foundation; either version 2 of the License, or any later version.
00010  *
00011  *  The Mana  World is  distributed in  the hope  that it  will be  useful, but
00012  *  WITHOUT ANY WARRANTY; without even  the implied warranty of MERCHANTABILITY
00013  *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00014  *  more details.
00015  *
00016  *  You should  have received a  copy of the  GNU General Public  License along
00017  *  with The Mana  World; if not, write to the  Free Software Foundation, Inc.,
00018  *  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00019  *
00020  *  $Id: mathutils.h 3165 2007-03-03 12:02:41Z b_lindeijer $
00021  */
00022 
00023 #ifndef _TMWSERV_MATHUTILS_H_
00024 #define _TMWSERV_MATHUTILS_H_
00025 
00026 namespace utils
00027 {
00028     namespace math
00029     {
00034         float fastInvSqrt(float x);
00035 
00040         float fastSqrt(float x);
00041 
00042         float cachedSin(int angle);
00043 
00044         float cachedCos(int angle);
00045 
00046         float cachedTan(int angle);
00047 
00048         void init();
00049 
00050     } // namespace math
00051 
00052 } // namespace utils
00053 
00054 #endif

Generated on Fri Mar 30 15:39:16 2007 for TMW Server by  doxygen 1.3.9.1