Trigonomectric constants Polar and spherical to rectangular coordinates transform
Dependents: DISCO-F746NG_Lidar ZAILLEL_Interface
Trigo.h@0:2f533ad7c611, 2012-11-25 (annotated)
- Committer:
- cromda
- Date:
- Sun Nov 25 11:13:56 2012 +0000
- Revision:
- 0:2f533ad7c611
- Child:
- 1:eb028056d162
Trigonometric constants; Polar and spherical to rectangular coordinates transforms.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cromda | 0:2f533ad7c611 | 1 | #ifndef MBED_TRIGO_H |
cromda | 0:2f533ad7c611 | 2 | #define MBED_TRIGO_H |
cromda | 0:2f533ad7c611 | 3 | |
cromda | 0:2f533ad7c611 | 4 | |
cromda | 0:2f533ad7c611 | 5 | const float Pi=3.141592653590; |
cromda | 0:2f533ad7c611 | 6 | const float Pis2=Pi/2.0; |
cromda | 0:2f533ad7c611 | 7 | const float DeuxPi=2.0*Pi; |
cromda | 0:2f533ad7c611 | 8 | const float degre=Pi/180.0; |
cromda | 0:2f533ad7c611 | 9 | |
cromda | 0:2f533ad7c611 | 10 | void RecPol(float x, float y, float *r, float *a); |
cromda | 0:2f533ad7c611 | 11 | |
cromda | 0:2f533ad7c611 | 12 | void PolRec(float r, float a, float *x, float *y); |
cromda | 0:2f533ad7c611 | 13 | |
cromda | 0:2f533ad7c611 | 14 | void RecSph(float x, float y, float z, float *r, float *a, float *b); |
cromda | 0:2f533ad7c611 | 15 | |
cromda | 0:2f533ad7c611 | 16 | void SphRec(float r, float a, float b, float *x, float *y, float *z); |
cromda | 0:2f533ad7c611 | 17 | |
cromda | 0:2f533ad7c611 | 18 | #endif |