TAN(3G)
π 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 π
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
- 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