DEGREES(3G)

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

✨ DEGREES β€” the "radians β†’ degrees" glow-up ✨

okay bestie, welcome to the degrees page of section 3G πŸ’… this is the manual for the OpenGL Shading Language function that turns your sad little radian numbers into glorious degrees. it's short, it's sweet, it's giving "one-line icon", and we're gonna read it together 🫢


🌸 NAME 🌸

degrees β€” convert a quantity in radians to degrees

like. that's the whole job. that's the gig. πŸ‘‘


πŸŽ€ DECLARATION πŸŽ€

here's the signature, no cap, copy it exactly:

genType degrees(genType radians);

yes the parameter is literally called radians. iconic naming tbh. it ate. ✨


πŸ’– PARAMETERS πŸ’–

  • radians β€” the quantity, in radians, that you want converted into degrees. you hand it your radians, it hands you back degrees. that's the transaction. 🀝

πŸ¦‹ DESCRIPTION πŸ¦‹

degrees converts a quantity specified in radians into degrees. that's it. that's the function.

the return value is:

${ 180 \times radians } \over \pi$

so like, radians times 180, divided by pi. the math is mathing fr fr. πŸ’―


πŸ‘‘ VERSION SUPPORT πŸ‘‘

okay so here's the vibe check on which OpenGL Shading Language versions fw this function. spoiler: all of them 😭

Function name: degrees

  • 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 β€” βœ”

every single version said yes. main character energy from start to finish. πŸ‘‘


🌈 SEE ALSO 🌈

  • radians() β€” the reverse queen, if you're feeling like going the other way 🧚

iykyk. πŸ‘€


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


heads up: the top of this page has a [FIXME: manual] placeholder sitting in the header slot, so that's a lil unfinished business someone left for us πŸ™ˆ

and that's a wrap!! πŸŽ€ this page came from [FIXME: source], dated 01/03/2018, in manual section 3G, and it is β€” say it with me β€” iconic. periodt. πŸ’…βœ¨πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from