0.9.6
spline.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 #include "../gtx/optimum_pow.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_spline extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename genType>
56  GLM_FUNC_DECL genType catmullRom(
57  genType const & v1,
58  genType const & v2,
59  genType const & v3,
60  genType const & v4,
61  typename genType::value_type const & s);
62 
65  template <typename genType>
66  GLM_FUNC_DECL genType hermite(
67  genType const & v1,
68  genType const & t1,
69  genType const & v2,
70  genType const & t2,
71  typename genType::value_type const & s);
72 
75  template <typename genType>
76  GLM_FUNC_DECL genType cubic(
77  genType const & v1,
78  genType const & v2,
79  genType const & v3,
80  genType const & v4,
81  typename genType::value_type const & s);
82 
84 }//namespace glm
85 
86 #include "spline.inl"
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.
Definition: _noise.hpp:31
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.