COS(3G)

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

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