simplex.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2011-04-09
00005 // Updated : 2011-04-09
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtx/simplex.hpp
00009 // Dependency:
00010 // - GLM core
00012 
00013 #ifndef glm_gtx_simplex
00014 #define glm_gtx_simplex
00015 
00016 // Dependency:
00017 #include "../glm.hpp"
00018 
00019 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00020 #       pragma message("GLM: GLM_GTX_simplex extension included")
00021 #endif
00022 
00023 namespace glm
00024 {
00025     namespace gtx{
00027         namespace spline
00028         {
00031             
00034             template <typename genType> 
00035             genType catmullRom(
00036                                genType const & v1, 
00037                                genType const & v2, 
00038                                genType const & v3, 
00039                                genType const & v4, 
00040                                typename genType::value_type const & s);
00041             
00044             template <typename genType> 
00045             genType hermite(
00046                             genType const & v1, 
00047                             genType const & t1, 
00048                             genType const & v2, 
00049                             genType const & t2, 
00050                             typename genType::value_type const & s);
00051             
00054             template <typename genType> 
00055             genType cubic(
00056                           genType const & v1, 
00057                           genType const & v2, 
00058                           genType const & v3, 
00059                           genType const & v4, 
00060                           typename genType::value_type const & s);
00061             
00063             
00064         }//namespace simplex
00065     }//namespace gtx
00066 }//namespace glm
00067 
00068 #include "simplex.inl"
00069 
00070 namespace glm{using namespace gtx::simplex;}
00071 
00072 #endif//glm_gtx_spline
00073