| 1.0.0 API documentation

extend.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_extend 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."
20 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTX_extend extension included")
22 #endif
23
24 namespace glm
25 {
28
31 template<typename genType>
32 GLM_FUNC_DECL genType extend(
33 genType const& Origin,
34 genType const& Source,
35 typename genType::value_type const Length);
36
38 }//namespace glm
39
40 #include "extend.inl"
glm::extend
GLM_FUNC_DECL genType extend(genType const &Origin, genType const &Source, typename genType::value_type const Length)
Extends of Length the Origin position using the (Source - Origin) direction.