DEGREES(3clc)
β¨ DEGREES β¨
okay bestie, welcome to DEGREES π this one lives in the OpenCL Manual (section 3clc, iykyk) and it's literally the glow-up from radians to degrees. let's get into it π¦
πΈ NAME πΈ
degrees β Converts radians to degrees. π
π SYNOPSIS π
gentype degrees(gentype radians);
that's it. that's the whole vibe. one arg in, degrees out β¨
π DESCRIPTION π
So what it does: converts radians to degrees. That's it. That's the whole function, no cap π«Ά
And the math? literally just:
(180 / pi) * radians
iconic. tiny. perfect. ate π
π₯ NOTES π₯
okay so here's where we talk about the generic type names, because these matter, bestie. don't skip π
- The generic type name
gentypeis used to indicate that the function can takefloat,float2,float3,float4,float8,float16,double,double2,double3,double4,double8, ordouble16as the type for the arguments. π - The generic type name
gentypefis used to indicate that the function can takefloat,float2,float3,float4,float8, orfloat16as the type for the arguments. β - The generic type name
gentypedis used to indicate that the function can takedouble,double2,double3,double4,double8, ordouble16as the type for the arguments. π - The built-in common functions are implemented using the round to nearest even rounding mode. π
- If extended with
cl_khr_fp16(3clc), generic type namegentypemay indicatehalfandhalf{2|3|4|8|16}as arguments and return values. π§
π SPECIFICATION π
OpenCL Specification[1] β go check the footnote at the bottom, it's got the receipts π§Ύ
π SEE ALSO π
(yes, radians is the reverse. they're a duo. main character energy together fr fr π)
π AUTHORS π
The Khronos Group π«Ά
π COPYRIGHT π
Copyright Β© 2007-2011 The Khronos Group Inc. πΈ
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials. β¨
π NOTES π
OpenCL Specificationpage 260, section 6.12.4 - Common Functions
aaaand that's the page, bestie π
written by The Khronos Group, dated 01/14/2021, and it's the DEGREES(3clc) page from the OpenCL Manual. go forth and convert your radians, you absolute icon π¦β¨π
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms