COS(3G)
π COS β bestie edition π
okay so this is COS(3G), it lives in section 3G of the manual, and it's literally just the vibe of "gimme the cosine." that's it. that's the page. let's go π¦
β¨ NAME β¨
cos β return the cosine of the parameter π
β¨ DECLARATION β¨
genType cos(genType angle);
not me writing a function signature and feeling powerful π
β¨ PARAMETERS β¨
angleβ the quantity, in radians, that you want the cosine of. radians, bestie. not degrees. i'm serious. π
β¨ DESCRIPTION β¨
cos returns the trigonometric cosine of angle. that's the whole thing. it's giving "short and iconic." π
β¨ VERSION SUPPORT β¨
so the question is always "does this work in my GLSL version" and the answer here is a resounding yes, no notes, full slay. π
here's the deets β the function name is cos, and it's supported across every single OpenGL Shading Language version listed:
- OpenGL Shading Language 1.10 β β
- OpenGL Shading Language 1.20 β β
- OpenGL Shading Language 1.30 β β
- OpenGL Shading Language 1.40 β β
- OpenGL Shading Language 1.50 β β
- OpenGL Shading Language 3.30 β β
- OpenGL Shading Language 4.00 β β
- OpenGL Shading Language 4.10 β β
- OpenGL Shading Language 4.20 β β
- OpenGL Shading Language 4.30 β β
- OpenGL Shading Language 4.40 β β
- OpenGL Shading Language 4.50 β β
twelve out of twelve. a clean sweep. ate and left no crumbs fr fr πβ¨
β¨ SEE ALSO β¨
sin()β its partner in crime π«Ά
β¨ 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
okay that's the whole page, you're so welcome π quick sign-off: this one came from the source [FIXME: source], dated 01/03/2018, and it's page COS(3G) β go forth and compute your cosines responsibly, bestie, ily πΈπ§
π¦ 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