mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 12:34:35 +00:00
12 lines
235 B
C++
12 lines
235 B
C++
/// @ref gtx_perpendicular
|
|
/// @file glm/gtx/perpendicular.inl
|
|
|
|
namespace glm
|
|
{
|
|
template<typename genType>
|
|
GLM_FUNC_QUALIFIER genType perp(genType const& x, genType const& Normal)
|
|
{
|
|
return x - proj(x, Normal);
|
|
}
|
|
}//namespace glm
|