Mercurial > hg > Members > e085711
view webGL/dandy/resources/sankaku.c~ @ 27:e3a50cb29c85 default tip
upload xmldisplay
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 20 Apr 2011 23:45:15 +0900 |
parents | 680b5b0cd1e4 |
children |
line wrap: on
line source
mycos = []; mysin = []; function Mycos(c) { c %= 360; if(c < 0) c += 360; if((c <= 180)) return (mycos[c]); if(c > 180) return (mycos[180 - (c - 180)]); return 0; } function Mysin(c) { c %= 360; if( c < 0) c += 360; if(c <= 180) return (mysin[c]); if(c > 180) return (mysin[180 - (c - 180)] * -1); return 0; }