1 /// @ref gtx_extend
2 /// @file glm/gtx/extend.hpp
3 ///
4 /// @see core (dependence)
5 ///
6 /// @defgroup gtx_extend GLM_GTX_extend
7 /// @ingroup gtx
8 ///
9 /// @brief Extend a position from a source to a position at a defined length.
10 ///
11 /// <glm/gtx/extend.hpp> need to be included to use these functionalities.
12 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
19 #	pragma message("GLM: GLM_GTX_extend extension included")
20 #endif
21 
22 namespace glm
23 {
24 	/// @addtogroup gtx_extend
25 	/// @{
26 
27 	/// Extends of Length the Origin position using the (Source - Origin) direction.
28 	/// @see gtx_extend
29 	template <typename genType>
30 	GLM_FUNC_DECL genType extend(
31 		genType const & Origin,
32 		genType const & Source,
33 		typename genType::value_type const Length);
34 
35 	/// @}
36 }//namespace glm
37 
38 #include "extend.inl"
39