From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/libraries/glm/gtx/verbose_operator.inl | 124 +++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100755 src/libraries/glm/gtx/verbose_operator.inl (limited to 'src/libraries/glm/gtx/verbose_operator.inl') diff --git a/src/libraries/glm/gtx/verbose_operator.inl b/src/libraries/glm/gtx/verbose_operator.inl new file mode 100755 index 0000000..1193efb --- /dev/null +++ b/src/libraries/glm/gtx/verbose_operator.inl @@ -0,0 +1,124 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net) +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Created : 2006-04-20 +// Updated : 2008-09-29 +// Licence : This source is under MIT License +// File : glm/gtx/verbose_operator.inl +/////////////////////////////////////////////////////////////////////////////////////////////////// + +namespace glm +{ + template + GLM_FUNC_QUALIFIER genType add(genType const & a, genType const & b) + { + return a + b; + } + + template + GLM_FUNC_QUALIFIER genType sub(genType const & a, genType const & b) + { + return a - b; + } + + template + GLM_FUNC_QUALIFIER detail::tmat2x2 mul + ( + detail::tmat2x2 const & a, + detail::tmat2x2 const & b + ) + { + return a * b; + } + + template + GLM_FUNC_QUALIFIER detail::tmat3x3 mul + ( + detail::tmat3x3 const & a, + detail::tmat3x3 const & b + ) + { + return a * b; + } + + template + GLM_FUNC_QUALIFIER detail::tmat4x4 mul + ( + detail::tmat4x4 const & a, + detail::tmat4x4 const & b + ) + { + return a * b; + } + + template + GLM_FUNC_QUALIFIER detail::tvec2 mul + ( + detail::tmat2x2 const & m, + detail::tvec2 const & v + ) + { + return m * v; + } + + template + GLM_FUNC_QUALIFIER detail::tvec3 mul + ( + detail::tmat3x3 const & m, + detail::tvec3 const & v) + { + return m * v; + } + + template + GLM_FUNC_QUALIFIER detail::tvec4 mul + ( + detail::tmat4x4 const & m, + detail::tvec4 const & v + ) + { + return m * v; + } + + template + GLM_FUNC_QUALIFIER detail::tvec2 mul + ( + detail::tvec2 const & v, + detail::tmat2x2 const & m + ) + { + return v * m; + } + + template + GLM_FUNC_QUALIFIER detail::tvec3 mul + ( + detail::tvec3 const & v, + detail::tmat3x3 const & m + ) + { + return v * m; + } + + template + GLM_FUNC_QUALIFIER detail::tvec4 mul + ( + detail::tvec4 const & v, + detail::tmat4x4 const & m + ) + { + return v * m; + } + + template + GLM_FUNC_QUALIFIER genType div(genType const & a, genType const & b) + { + return a / b; + } + + template + GLM_FUNC_QUALIFIER genTypeT mad(genTypeT const & a, genTypeU const & b, genTypeV const & c) + { + return a * b + c; + } +}//namespace glm -- cgit v1.2.3