glm/glm/gtx/handed_coordinate_space.hpp

59 lines
1.9 KiB
C++
Raw Normal View History

2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
2011-01-20 11:40:14 +00:00
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2005-12-21
// Updated : 2009-02-19
// Licence : This source is under MIT License
2011-01-19 17:10:55 +00:00
// File : glm/gtx/handed_coordinate_space.hpp
2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
// Dependency:
// - GLM core
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef glm_gtx_handed_coordinate_space
#define glm_gtx_handed_coordinate_space
// Dependency:
#include "../glm.hpp"
2011-01-19 17:10:55 +00:00
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
# pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
#endif
2010-04-29 10:54:07 +00:00
namespace glm
{
namespace gtx{
//! GLM_GTX_handed_coordinate_space extension: To know if a set of three basis vectors defines a right or left-handed coordinate system.
2010-04-29 10:54:07 +00:00
namespace handed_coordinate_space
{
/// \addtogroup gtx_handed_coordinate_space
///@{
2010-04-29 10:54:07 +00:00
//! Return if a trihedron right handed or not.
//! From GLM_GTX_handed_coordinate_space extension.
template <typename T>
bool rightHanded(
detail::tvec3<T> const & tangent,
detail::tvec3<T> const & binormal,
detail::tvec3<T> const & normal);
//! Return if a trihedron left handed or not.
//! From GLM_GTX_handed_coordinate_space extension.
template <typename T>
bool leftHanded(
detail::tvec3<T> const & tangent,
detail::tvec3<T> const & binormal,
detail::tvec3<T> const & normal);
///@}
2010-04-29 10:54:07 +00:00
}//namespace handed_coordinate_space
}//namespace gtx
}//namespace glm
#include "handed_coordinate_space.inl"
2010-04-29 10:56:52 +00:00
namespace glm{using namespace gtx::handed_coordinate_space;}
2010-04-29 10:54:07 +00:00
#endif//glm_gtx_handed_coordinate_space