You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
413 B
C++
26 lines
413 B
C++
4 years ago
|
#ifndef CORDIC_HPP_
|
||
|
#define CORDIC_HPP_
|
||
|
|
||
4 years ago
|
namespace cordic {
|
||
4 years ago
|
constexpr double PI = 3.1415926535L;
|
||
|
|
||
|
void init();
|
||
|
|
||
4 years ago
|
#if !defined(TARGET_PLATFORM_L4)
|
||
4 years ago
|
double mod(double n, double d);
|
||
|
|
||
|
double cos(double x);
|
||
|
double sin(double x);
|
||
|
double tan(double x);
|
||
4 years ago
|
#else
|
||
|
float mod(float n, float d);
|
||
|
|
||
|
float cos(float x);
|
||
|
float sin(float x);
|
||
|
float tan(float x);
|
||
|
#endif
|
||
4 years ago
|
}
|
||
|
|
||
|
#endif // CORDIC_HPP_
|
||
|
|