annotate ppe/Sankaku.h @ 70:cee55c8365e9 default tip

fix
author Kazuma
date Thu, 19 May 2016 18:52:26 +0900
parents 7aaaaf5dde40
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include <math.h>
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #define SANKAKU (100000.0)
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 static const double pi2 = M_PI * 2.0;
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 static inline float Mycos(float c) { return cosf( c / 360.0 * pi2 ) * SANKAKU; }
7aaaaf5dde40 add new task.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 static inline float Mysin(float c) { return sinf( c / 360.0 * pi2 ) * SANKAKU; }