#ifndef I_SIN_COS_H
#define I_SIN_COS_H

/*!
  \file
  \brief 整数型の sin(), cos()

  整数型の三角関数(sin(), cos())を提供
  角度の細かさ、最大値はコンパイル時に指定

  \author Satofumi KAMIMURA

  $Id: isincos.h 286 2008-10-20 09:40:22Z satofumi $
*/


enum {
  ISINCOS_ANGLE_DIVIDED = 65536, /* [0, 65536] */
  ISINCOS_VALUE_MAX = 32768,	/* [-32768, +32768] */
  ISINCOS_VALUE_SHIFT = 15,
};


extern int isin(unsigned short div16);
extern int icos(unsigned short div16);

#endif /* !I_SIN_COS_H */
