DEGREES(3G)
β¨ 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 π
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 (yes, again, it's listed twice bestie) π
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
- 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