INVERSE(3G)
π INVERSE(3G) π
okay bestie, welcome to the inverse page β a lil function from the 3G manual section that literally just hands you the inverse of a matrix. no drama. well, almost no drama, there's a caveat, we'll get there. π¦
β¨ NAME β¨
inverse β calculate the inverse of a matrix π
πΈ DECLARATION πΈ
here's the whole squad, every single overload, no cap:
mat2 inverse(mat2 m);
mat3 inverse(mat3 m);
mat4 inverse(mat4 m);
dmat2 inverse(dmat2 m);
dmat3 inverse(dmat3 m);
dmat4 inverse(dmat4 m);
π PARAMETERS π
mβ the matrix you want the inverse of. that's it. that's the whole parameter. give it a matrix and it does its lil thing π«Ά
π DESCRIPTION π
inverse returns the inverse of the matrix m.
β οΈ BIG caveat, pay attention bestie: the values in the returned matrix are undefined if m is singular or poorly-conditioned (aka nearly singular). like, undefined undefined. don't come crying to me. π singular matrices are the enemy fr fr.
β VERSION SUPPORT β
(the original had a whole giant table here β we're doing it as lists because tables are not the vibe today, but every single checkmark and dash is here, i promise π)
inverse (float) β OpenGL Shading Language version support:
- 1.10 β
-π - 1.20 β
-π - 1.30 β
-π - 1.40 β
ββ¨ - 1.50 β
ββ¨ - 3.30 β
ββ¨ - 4.00 β
ββ¨ - 4.10 β
ββ¨ - 4.20 β
ββ¨ - 4.30 β
ββ¨ - 4.40 β
ββ¨ - 4.50 β
ββ¨
inverse (double) β OpenGL Shading Language version support:
- 1.10 β
-π - 1.20 β
-π - 1.30 β
-π - 1.40 β
-π - 1.50 β
-π - 3.30 β
-π - 4.00 β
ββ¨ - 4.10 β
ββ¨ - 4.20 β
ββ¨ - 4.30 β
ββ¨ - 4.40 β
ββ¨ - 4.50 β
ββ¨
so like, float inverse showed up in 1.40 and has been thriving ever since, and double inverse didn't pull up until 4.00. late bloomer icon behavior honestly π
π SEE ALSO π
transpose()determinant()
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
Copyright Β© 2011-2014 Khronos Group
and that's the whole page bestie, ty for reading, mwah π this was [FIXME: source], dated 01/03/2018, and it lives under the name INVERSE(3G) β slay, periodt, go invert something (that isn't singular) πβ¨
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms