/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/ |
A D | window_util.c | 23 #ifndef M_PI 24 #define M_PI 3.14159265358979323846 macro 44 const float arg = M_PI * 2.0 / ((float)state->size); in WindowPopulateState()
|
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/ |
A D | drv_mag_qst_qmc5883l.h | 53 #ifndef M_PI 54 #define M_PI 3.14159265358979323846264338327950288 macro
|
A D | drv_acc_gyro_qst_qmi8610.h | 13 #ifndef M_PI 14 #define M_PI (3.14159265358979323846f) macro
|
A D | drv_acc_gyro_qst_qmi8610.c | 374 gyro_t[AXIS_X] = (float)(raw_gyro_xyz[AXIS_X] * M_PI / 180) / gyro_lsb_div; // *pi/180 in FisImu_read_xyz() 375 gyro_t[AXIS_Y] = (float)(raw_gyro_xyz[AXIS_Y] * M_PI / 180) / gyro_lsb_div; in FisImu_read_xyz() 376 gyro_t[AXIS_Z] = (float)(raw_gyro_xyz[AXIS_Z] * M_PI / 180) / gyro_lsb_div; in FisImu_read_xyz() 398 applyScaleFactor((float)(M_PI / (gyro_lsb_div * 180)), 3, rawData, calibratedData); in FisImu_processGyroscopeData() 471 const float conversionFactor = (unit == GyrUnit_rads) ? 180 / M_PI : 1; in FisImu_applyGyroscopeOffset()
|
A D | drv_mag_qst_qmc5883l.c | 196 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI; in qmc5883l_readHeading()
|
A D | drv_mag_qst_qmc6310.c | 270 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI; in qmc6310_readHeading()
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | SDL_rotozoom.h | 40 #ifndef M_PI 41 #define M_PI 3.141592654 macro
|
A D | SDL_gfxPrimitives.h | 34 #ifndef M_PI 35 #define M_PI 3.1415926535897932384626433832795 macro
|
A D | SDL_gfxPrimitives.c | 3226 temp = sin(dstart * M_PI / 180.); in arcColor() 3230 temp = cos(dstart * M_PI / 180.); in arcColor() 3234 temp = -cos(dstart * M_PI / 180.); in arcColor() 3238 temp = -sin(dstart * M_PI / 180.); in arcColor() 3258 temp = sin(dend * M_PI / 180); in arcColor() 3262 temp = cos(dend * M_PI / 180); in arcColor() 3266 temp = -cos(dend * M_PI / 180); in arcColor() 3270 temp = -sin(dend * M_PI / 180); in arcColor() 4622 start_angle = (double) start *(2.0 * M_PI / 360.0); in _pieColor() 4623 end_angle = (double) end *(2.0 * M_PI / 360.0); in _pieColor() [all …]
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/fixed_point/ |
A D | simple_features_generator.cc | 92 FloatToFixed_Q2_30(cos(j * i * M_PI * 2 / time_series_size)); in CalculateDiscreteFourierTransform() 98 FloatToFixed_Q2_30(sin(j * i * M_PI * 2 / time_series_size)); in CalculateDiscreteFourierTransform() 111 const float real_value = (0.5 - 0.5 * cos((2 * M_PI * i) / window_length)); in CalculatePeriodicHann()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objfloat.c | 46 #ifndef M_PI 47 #define M_PI (3.14159265358979323846) macro 56 const mp_obj_float_t mp_const_float_pi_obj = {{&mp_type_float}, (mp_float_t)M_PI};
|
/AliOS-Things-master/components/amp/modules/ |
A D | qlc5883.js | 56 var M_PI = 3.14159265358979323846264338327950288 variable 329 var heading = 180.0 * Math.atan2(x_fit, y_fit) / M_PI;
|
/AliOS-Things-master/components/py_engine/framework/ |
A D | qmc5883.py | 68 M_PI = 3.14159265358979323846264338327950288 variable 299 heading = 180.0 * math.atan2(x_fit, y_fit) / M_PI;
|
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/compass/ |
A D | compass.md | 196 atan2(x_fit, y_fit) * 180.0 / M_PI; 282 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI;
|
/AliOS-Things-master/components/SDL2/src/events/ |
A D | SDL_gesture.c | 307 double ta = -M_PI/4; in bestDollarDifference() 308 double tb = M_PI/4; in bestDollarDifference() 309 double dt = M_PI/90; in bestDollarDifference()
|
/AliOS-Things-master/components/SDL2/src/haptic/linux/ |
A D | SDL_syshaptic.c | 42 #ifndef M_PI 43 # define M_PI 3.14159265358979323846 macro 727 tmp = (((Sint32) (f * 18000. / M_PI)) + 45000) % 36000; in SDL_SYS_ToDirection()
|
/AliOS-Things-master/components/SDL2/src/stdlib/ |
A D | SDL_stdlib.c | 82 result = M_PI; in SDL_acos() 87 result += M_PI; in SDL_acos() 112 result = -(M_PI / 2.0); in SDL_asin() 114 result = (M_PI / 2.0) - SDL_acos(val); in SDL_asin()
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_stdinc.h | 508 #ifndef M_PI 509 #define M_PI 3.14159265358979323846264338327950288 /**< pi */ macro
|
/AliOS-Things-master/components/SDL2/src/sensor/windows/ |
A D | SDL_windowssensor.c | 183 const float DEGREES_TO_RADIANS = (float)(M_PI / 180.0f); in ISensorEventsVtbl_OnDataUpdated()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_luv.c | 737 #ifndef M_PI 738 #define M_PI 3.14159265358979323846 macro 857 #define uv2ang(u, v) ( (NANGLES*.499999999/M_PI) \
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testvulkan.c | 1073 clearColor.float32[1] = (float)(0.5 + 0.5 * SDL_sin(currentTime + M_PI * 2 / 3)); in render() 1074 clearColor.float32[2] = (float)(0.5 + 0.5 * SDL_sin(currentTime + M_PI * 4 / 3)); in render()
|
A D | testgles2.c | 112 radians = (float)(angle * M_PI) / 180.0f; in rotate_matrix()
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_rotate.c | 135 … radangle = angle * (M_PI / -180.0); /* reverse the angle because our rotations are clockwise */ in SDLgfx_rotozoomSurfaceSizeTrig()
|
/AliOS-Things-master/components/SDL2/src/render/direct3d11/ |
A D | SDL_render_d3d11.c | 1819 verts->pos.z = (float)(M_PI * (float) angle / 180.0f); /* rotation */ in D3D11_QueueCopyEx() 1938 projection = MatrixRotationZ(SDL_static_cast(float, M_PI * 0.5f)); in D3D11_UpdateViewport() 1941 projection = MatrixRotationZ(SDL_static_cast(float, M_PI)); in D3D11_UpdateViewport() 1944 projection = MatrixRotationZ(SDL_static_cast(float, -M_PI * 0.5f)); in D3D11_UpdateViewport()
|
/AliOS-Things-master/components/SDL2/src/audio/ |
A D | SDL_audiocvt.c | 422 … const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * ((float) M_PI); in kaiser_and_sinc()
|