NVidia Gameworks
  • Main Page
  • Classes
  • Files
  • File List
  • File Members

NvMath.h

Go to the documentation of this file.
00001 // TAGRELEASE: CUSTOM
00002 
00003 //
00004 // Template math library for common 3D functionality
00005 //
00006 // This code is in part deriver from glh, a cross platform glut helper library.
00007 // The copyright for glh follows this notice.
00008 //
00009 // Copyright (c) NVIDIA Corporation. All rights reserved.
00011 
00012 /*
00013     Copyright (c) 2000 Cass Everitt
00014         Copyright (c) 2000 NVIDIA Corporation
00015     All rights reserved.
00016 
00017     Redistribution and use in source and binary forms, with or
00018         without modification, are permitted provided that the following
00019         conditions are met:
00020 
00021      * Redistributions of source code must retain the above
00022            copyright notice, this list of conditions and the following
00023            disclaimer.
00024 
00025      * Redistributions in binary form must reproduce the above
00026            copyright notice, this list of conditions and the following
00027            disclaimer in the documentation and/or other materials
00028            provided with the distribution.
00029 
00030      * The names of contributors to this software may not be used
00031            to endorse or promote products derived from this software
00032            without specific prior written permission.
00033 
00034        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00035            ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00036            LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00037            FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00038            REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00039            INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00040            BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00041            LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00042            CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00043            LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
00044            ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00045            POSSIBILITY OF SUCH DAMAGE.
00046 
00047 
00048     Cass Everitt - cass@r3.nu
00049 */
00050 
00051 #ifndef NV_MATH_H
00052 #define NV_MATH_H
00053 
00054 #include <NvFoundation.h>
00055 
00056 
00057 #include <math.h>
00058 
00059 #include "NvVector.h"
00060 #include "NvMatrix.h"
00061 #include "NvQuaternion.h"
00062 
00065 
00066 #define NV_PI   float(3.1415926535897932384626433832795)
00067 
00068 namespace nv {
00069 
00070 typedef vec2<float> vec2f; 
00071 typedef vec2<int32_t> vec2i; 
00072 typedef vec2<uint32_t> vec2ui; 
00073 typedef vec3<float> vec3f; 
00074 typedef vec3<int32_t> vec3i; 
00075 typedef vec3<uint32_t> vec3ui; 
00076 typedef vec4<float> vec4f; 
00077 typedef vec4<int32_t> vec4i; 
00078 typedef vec4<uint32_t> vec4ui; 
00079 typedef matrix4<float> matrix4f; 
00080 typedef quaternion<float> quaternionf; 
00081 
00082 };
00083 
00084 #endif
Generated on Sat Mar 8 14:58:35 2014 for NVIDIA GameWorks OpenGL App Framework and Libraries by Doxygen
©2014 NVIDIA Corporation.