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