fuckingtech/public/assets/glsl/lygia/space/polar2cart.msl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

10 lines
No EOL
250 B
Text

/*
contributors: Ivan Dianov
description: polar to cartesian conversion.
use: polar2cart(<float2> polar)
*/
#ifndef FNC_POLAR2CART
#define FNC_POLAR2CART
float2 polar2cart(float2 polar) { return float2(cos(polar.x), sin(polar.x)) * polar.y; }
#endif