AOT計算で呼び出し自体を早くする三角関数

Dependents:   NuMidi401 NuFM401

Revision:
2:d8c9637a5f09
Parent:
0:2888f1d9a23e
Child:
3:ba78a1dd8b55
--- a/AOTTrigon.cpp	Mon Dec 22 13:13:55 2014 +0000
+++ b/AOTTrigon.cpp	Tue Dec 23 05:32:28 2014 +0000
@@ -6,16 +6,4 @@
     t_sin = new double[division];
     for(int i = 0; i < division; i++) 
         t_sin[i] = sin((double)i / division * (3.14159265358979323846264 * 2.0));
-}
-
-inline double AOTTrigon::sine(double x) {
-    return t_sin[(int)(fmod(x,3.14159265358979323846264*2.0)*rate)];
-}
-
-inline double AOTTrigon::cosine(double x) {
-    return sine(x+3.14159265358979323846264/2.0);
-}
-
-inline double AOTTrigon::tangent(double x) {
-    return sine(x)/cosine(x);
 }
\ No newline at end of file