You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
67 lines
1.8 KiB
67 lines
1.8 KiB
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) |
|
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
// Created : 2005-12-21 |
|
// Updated : 2009-03-06 |
|
// Licence : This source is under MIT License |
|
// File : glm/gtx/projection.hpp |
|
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
// Dependency: |
|
// - GLM core |
|
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
|
|
#ifndef glm_gtx_projection |
|
#define glm_gtx_projection |
|
|
|
// Dependency: |
|
#include "../glm.hpp" |
|
|
|
#if(defined(GLM_MESSAGES) && !defined(glm_ext)) |
|
# pragma message("GLM: GLM_GTX_projection extension included") |
|
#endif |
|
|
|
namespace glm |
|
{ |
|
namespace test{ |
|
void main_gtx_projection(); |
|
}//namespace test |
|
|
|
namespace gtx{ |
|
//! GLM_GTX_projection extension: Projection of a vector to other one |
|
namespace projection |
|
{ |
|
/// \addtogroup gtx_projection |
|
///@{ |
|
|
|
//! Projects x on Normal. |
|
//! From GLM_GTX_projection extension. |
|
template <typename T> |
|
detail::tvec2<T> proj( |
|
detail::tvec2<T> const & x, |
|
detail::tvec2<T> const & Normal); |
|
|
|
//! Projects x on Normal. |
|
//! From GLM_GTX_projection extension. |
|
template <typename T> |
|
detail::tvec3<T> proj( |
|
detail::tvec3<T> const & x, |
|
detail::tvec3<T> const & Normal); |
|
|
|
//! Projects x on Normal. |
|
//! From GLM_GTX_projection extension. |
|
template <typename T> |
|
detail::tvec4<T> proj( |
|
detail::tvec4<T> const & x, |
|
detail::tvec4<T> const & Normal); |
|
|
|
///@} |
|
|
|
}//namespace projection |
|
}//namespace gtx |
|
}//namespace glm |
|
|
|
#include "projection.inl" |
|
|
|
namespace glm{using namespace gtx::projection;} |
|
|
|
#endif//glm_gtx_projection
|
|
|