Closed patfrench closed 2 years ago
The math library uses doubles for sin and cos. I'll see what I can do to fix this, until then, you can get around the error by changing sin and cos to sinf and cosf if they are supported. Failing that you should be able to cast the results of sin and cos to floats.
mp_float_t cosAngle = cosf(angle);
mp_float_t sinAngle = sinf(angle);
or possibly:
mp_float_t cosAngle = (mp_float_t) cos(angle);
mp_float_t sinAngle = (mp_float_t) sin(angle);
Russ
Hi,
I have modified :
mp_float_t cosAngle = cosf(angle);
mp_float_t sinAngle = sinf(angle);
perfect ! It's works
I don't know if it closes
Thank you for your support
Excellent, I have updated the source.
Hi,
Happy new year update
but i have an error compilation
Thank you