mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-15 19:10:50 +00:00
Add glm 0.9.2
This commit is contained in:
parent
21545e1a24
commit
c4b531ed5e
218 changed files with 46187 additions and 0 deletions
47
ExternalLibs/glm/gtx/normal.hpp
Normal file
47
ExternalLibs/glm/gtx/normal.hpp
Normal file
|
@ -0,0 +1,47 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2005-12-21
|
||||
// Updated : 2006-11-13
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/normal.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_normal
|
||||
#define glm_gtx_normal
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_normal extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace normal ///< GLM_GTX_normal extension: Compute the normal of a triangle.
|
||||
{
|
||||
/// \addtogroup gtx_normal
|
||||
/// @{
|
||||
|
||||
//! Computes triangle normal from triangle points.
|
||||
//! From GLM_GTX_normal extension.
|
||||
template <typename T>
|
||||
detail::tvec3<T> triangleNormal(
|
||||
detail::tvec3<T> const & p1,
|
||||
detail::tvec3<T> const & p2,
|
||||
detail::tvec3<T> const & p3);
|
||||
|
||||
/// @}
|
||||
}//namespace normal
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "normal.inl"
|
||||
|
||||
namespace glm{using namespace gtx::normal;}
|
||||
|
||||
#endif//glm_gtx_normal
|
Loading…
Add table
Add a link
Reference in a new issue