INVERSE(3G)

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

πŸ’– 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 Β© 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