10 lines
No EOL
250 B
Text
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 |