| 1.0.0 API documentation

spline.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17 #include "../gtx/optimum_pow.hpp"
18
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_spline is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTX_spline extension included")
23 #endif
24
25 namespace glm
26 {
29
32 template<typename genType>
33 GLM_FUNC_DECL genType catmullRom(
34 genType const& v1,
35 genType const& v2,
36 genType const& v3,
37 genType const& v4,
38 typename genType::value_type const& s);
39
42 template<typename genType>
43 GLM_FUNC_DECL genType hermite(
44 genType const& v1,
45 genType const& t1,
46 genType const& v2,
47 genType const& t2,
48 typename genType::value_type const& s);
49
52 template<typename genType>
53 GLM_FUNC_DECL genType cubic(
54 genType const& v1,
55 genType const& v2,
56 genType const& v3,
57 genType const& v4,
58 typename genType::value_type const& s);
59
61 }//namespace glm
62
63 #include "spline.inl"
glm::cubic
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::hermite
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.
glm::catmullRom
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.