DETERMINANT(3G)
β¨ DETERMINANT π
(that's the 3G manual, bestie)
okay so like. this page is from the 3G manual, and it's all about determinant β one lil function that does Big Math Energy. let's get into it π«Ά
πΈ NAME πΈ
determinant β calculate the determinant of a matrix. that's it. that's the whole job. iconic.
π DECLARATION π
here's the whole lineup, exactly as written, no cap:
float determinant(mat2 m);
float determinant(mat3 m);
float determinant(mat4 m);
double determinant(dmat2 m);
double determinant(dmat3 m);
double determinant(dmat4 m);
so like, six whole overloads. float ones for mat2, mat3, mat4, and double ones for dmat2, dmat3, dmat4. the way that precision matters ππ
π¦ PARAMETERS π¦
mβ Specifies the matrix of which to take the determinant. that's the one and only thing you hand over. give her the matrix. she'll do the rest. π
π DESCRIPTION π
determinant returns the determinant of the matrix m.
literally it. no plot twist. you give it a matrix, it gives you a number back. lowkey the most honest function in the whole shading language. periodt.
π VERSION SUPPORT π
okay so this is the part where we find out which OpenGL Shading Language Versions are gonna let you do this. the original laid it out in a big fancy grid, so let me translate that grid into something your eyeballs can vibe with π
the versions on the table are: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 4.00, 4.10, 4.20, 4.30, 4.40, 4.50.
determinant (float)
1.10β-π1.20β-π1.30β-π1.40β-π1.50β β π₯3.30β β π₯4.00β β π₯4.10β β π₯4.20β β π₯4.30β β π₯4.40β β π₯4.50β β π₯
determinant (double)
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 the float girlies showed up in 1.50, and the double girlies had to wait all the way till 4.00. not me feeling bad for the double version π she was patient fr fr.
π SEE ALSO π
transpose()inverse()
go read those too, bestie, they're the friend group π«Ά
π 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 (yes, again) π
Copyright Β© 2011-2014 Khronos Group
okay that's the whole page!! go forth and compute your determinants, you absolute main character π
and for the cute sign-off: this one came from [FIXME: source], dated 01/03/2018, filed under DETERMINANT(3G) β mwah, bye bestie πβ¨π
π¦ 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