GLM  0.9.5
spline.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_spline
39 #define GLM_GTX_spline
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include "../gtx/optimum_pow.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_spline extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename genType>
57  GLM_FUNC_DECL genType catmullRom(
58  genType const & v1,
59  genType const & v2,
60  genType const & v3,
61  genType const & v4,
62  typename genType::value_type const & s);
63 
66  template <typename genType>
67  GLM_FUNC_DECL genType hermite(
68  genType const & v1,
69  genType const & t1,
70  genType const & v2,
71  genType const & t2,
72  typename genType::value_type const & s);
73 
76  template <typename genType>
77  GLM_FUNC_DECL genType cubic(
78  genType const & v1,
79  genType const & v2,
80  genType const & v3,
81  genType const & v4,
82  typename genType::value_type const & s);
83 
85 }//namespace glm
86 
87 #include "spline.inl"
88 
89 #endif//GLM_GTX_spline
90 
GLM_FUNC_DECL genType catmullRom(genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
Return a point from a catmull rom curve.
GLM_FUNC_DECL genType cubic(genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
Return a point from a cubic curve.
GLM_FUNC_DECL genType hermite(genType const &v1, genType const &t1, genType const &v2, genType const &t2, typename genType::value_type const &s)
Return a point from a hermite curve.