| 0.9.9 API documentation

- Main Page
- Modules
- Files

- File List

extend.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
19 # ifndef GLM_ENABLE_EXPERIMENTAL
20 # pragma message("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.")
21 # else
22 # pragma message("GLM: GLM_GTX_extend extension included")
23 # endif
24 #endif
25
26 namespace glm
27 {
30
33 template<typename genType>
34 GLM_FUNC_DECL genType extend(
35 genType const& Origin,
36 genType const& Source,
37 typename genType::value_type const Length);
38
40 }//namespace glm
41
42 #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.
glm
Definition: common.hpp:20