TAN(3G)

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

πŸ’– TAN(3G) πŸ’–

okay bestie, pull up a chair, we're doing trigonometry in GLSL today and honestly? it's giving iconic. this is the manual page for tan, living in the 3G section of the manual (yes that's the OpenGL shading one, iykyk 🧚).


✨ NAME ✨

tan β€” return the tangent of the parameter πŸŽ€


🌸 DECLARATION 🌸

genType tan(genType angle);

no cap, that's the whole signature. genType means it'll flex to whatever float-ish type you throw at it πŸ’…


πŸ¦‹ PARAMETERS πŸ¦‹

  • angle β€” specify the quantity, in radians, of which to return the tangent. radians!! not degrees!! don't do degrees bestie, i'm begging πŸ™ˆ

🌈 DESCRIPTION 🌈

tan returns the trigonometric tangent of angle. that's it. that's the whole vibe. you hand it an angle in radians, it hands you back the tangent, and the two of you go about your day ✨


πŸ‘‘ VERSION SUPPORT πŸ‘‘

the function name is tan, and here's the vibe check against every OpenGL Shading Language version β€” and bestie, it ate. it's supported in literally every single one πŸ’€πŸ”₯

  • OpenGL Shading Language Version 1.10 β€” βœ”
  • OpenGL Shading Language Version 1.20 β€” βœ”
  • OpenGL Shading Language Version 1.30 β€” βœ”
  • OpenGL Shading Language Version 1.40 β€” βœ”
  • OpenGL Shading Language Version 1.50 β€” βœ”
  • OpenGL Shading Language Version 3.30 β€” βœ”
  • OpenGL Shading Language Version 4.00 β€” βœ”
  • OpenGL Shading Language Version 4.10 β€” βœ”
  • OpenGL Shading Language Version 4.20 β€” βœ”
  • OpenGL Shading Language Version 4.30 β€” βœ”
  • OpenGL Shading Language Version 4.40 β€” βœ”
  • OpenGL Shading Language Version 4.50 β€” βœ”

all checks, zero misses, main character energy fr fr 🌟


πŸ’œ SEE ALSO πŸ’œ

  • sin()
  • cos()
  • atan()

(the whole trig friend group 🫢 go say hi)


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 page babes πŸ’– this one's stamped [FIXME: source] and dated 01/03/2018, so when you cite it, cite it cute. mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from