glm/glm/gtx/handed_coordinate_space.hpp

51 lines
1.5 KiB
C++
Raw Normal View History

2011-06-09 07:38:05 +00:00
/// @ref gtx_handed_coordinate_space
/// @file glm/gtx/handed_coordinate_space.hpp
2011-06-07 23:58:37 +00:00
///
/// @see core (dependence)
///
2012-11-13 16:54:11 +00:00
/// @defgroup gtx_handed_coordinate_space GLM_GTX_handed_coordinate_space
2011-06-09 07:38:05 +00:00
/// @ingroup gtx
///
2017-08-17 14:24:32 +00:00
/// Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension.
///
2017-08-17 14:24:32 +00:00
/// 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
2014-07-13 23:48:27 +00:00
#pragma once
2010-04-29 10:54:07 +00:00
// Dependency:
#include "../glm.hpp"
2016-11-12 13:19:22 +00:00
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_handed_coordinate_space 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."
2016-11-12 13:19:22 +00:00
#endif
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
2011-01-19 17:10:55 +00:00
# pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
#endif
2011-06-10 15:45:17 +00:00
namespace glm
2010-04-29 10:54:07 +00:00
{
2011-06-07 10:28:11 +00:00
/// @addtogroup gtx_handed_coordinate_space
2011-05-18 14:38:03 +00:00
/// @{
//! Return if a trihedron right handed or not.
//! From GLM_GTX_handed_coordinate_space extension.
template<typename T, qualifier Q>
2014-03-15 20:45:28 +00:00
GLM_FUNC_DECL bool rightHanded(
vec<3, T, Q> const& tangent,
vec<3, T, Q> const& binormal,
vec<3, T, Q> const& normal);
2011-05-18 14:38:03 +00:00
//! Return if a trihedron left handed or not.
//! From GLM_GTX_handed_coordinate_space extension.
template<typename T, qualifier Q>
2014-03-15 20:45:28 +00:00
GLM_FUNC_DECL bool leftHanded(
vec<3, T, Q> const& tangent,
vec<3, T, Q> const& binormal,
vec<3, T, Q> const& normal);
2011-05-18 14:38:03 +00:00
/// @}
}// namespace glm
2010-04-29 10:54:07 +00:00
#include "handed_coordinate_space.inl"