Trigonomectric constants Polar and spherical to rectangular coordinates transform
Dependents: DISCO-F746NG_Lidar ZAILLEL_Interface
Diff: Trigo.h
- Revision:
- 0:2f533ad7c611
- Child:
- 1:eb028056d162
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Trigo.h Sun Nov 25 11:13:56 2012 +0000 @@ -0,0 +1,18 @@ +#ifndef MBED_TRIGO_H +#define MBED_TRIGO_H + + +const float Pi=3.141592653590; +const float Pis2=Pi/2.0; +const float DeuxPi=2.0*Pi; +const float degre=Pi/180.0; + +void RecPol(float x, float y, float *r, float *a); + +void PolRec(float r, float a, float *x, float *y); + +void RecSph(float x, float y, float z, float *r, float *a, float *b); + +void SphRec(float r, float a, float b, float *x, float *y, float *z); + +#endif \ No newline at end of file