DEGREES(3clc)

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

✨ 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 gentype is used to indicate that the function can take float, float2, float3, float4, float8, float16, double, double2, double3, double4, double8, or double16 as the type for the arguments. 🌈
  • The generic type name gentypef is used to indicate that the function can take float, float2, float3, float4, float8, or float16 as the type for the arguments. ⭐
  • The generic type name gentyped is used to indicate that the function can take double, double2, double3, double4, double8, or double16 as 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 name gentype may indicate half and half{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 © 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 πŸ“Œ

  1. OpenCL Specification page 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