master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / extend.hpp
1 KB、42行 生 Blame 履歴
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/// Include <glm/gtx/extend.hpp> to use the features of this extension.
10///
11/// Extend a position from a source to a position at a defined length.
12
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#endif
21
22#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_extend extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_extend
29 /// @{
30
31 /// Extends of Length the Origin position using the (Source - Origin) direction.
32 /// @see gtx_extend
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
39 /// @}
40}//namespace glm
41
42#include "extend.inl"