DETERMINANT(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

✨ 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 Β© 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


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