diff options
Diffstat (limited to 'external/include/glm/gtx/perpendicular.inl')
-rw-r--r-- | external/include/glm/gtx/perpendicular.inl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/external/include/glm/gtx/perpendicular.inl b/external/include/glm/gtx/perpendicular.inl new file mode 100644 index 0000000..08a7a81 --- /dev/null +++ b/external/include/glm/gtx/perpendicular.inl @@ -0,0 +1,15 @@ +/// @ref gtx_perpendicular +/// @file glm/gtx/perpendicular.inl + +namespace glm +{ + template <typename vecType> + GLM_FUNC_QUALIFIER vecType perp + ( + vecType const & x, + vecType const & Normal + ) + { + return x - proj(x, Normal); + } +}//namespace glm |