AOT計算で呼び出し自体を早くする三角関数
AOTTrigon.cpp
- Committer:
- kb10uy
- Date:
- 2014-12-23
- Revision:
- 2:d8c9637a5f09
- Parent:
- 0:2888f1d9a23e
- Child:
- 3:ba78a1dd8b55
File content as of revision 2:d8c9637a5f09:
#include "AOTTrigon.h" AOTTrigon::AOTTrigon(int divide) { division = divide; rate = division / (3.14159265358979323846264 * 2.0); t_sin = new double[division]; for(int i = 0; i < division; i++) t_sin[i] = sin((double)i / division * (3.14159265358979323846264 * 2.0)); }