isincos.h File Reference

整数型の sin(), cos() More...

#include "cpp_extern_macro.h"

Include dependency graph for isincos.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { ISINCOS_ANGLE_DIVIDED = 65536, ISINCOS_VALUE_MAX = 32768, ISINCOS_VALUE_SHIFT = 15 }

Functions

int isin (unsigned short div16)
 整数型の sin()
int icos (unsigned short div16)
 整数型の cos()

Variables

 BEGIN_C_DECLS
 END_C_DECLS


Detailed Description

整数型の sin(), cos()

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

Author:
Satofumi KAMIMURA
$Id$

Definition in file isincos.h.


Function Documentation

int isin ( unsigned short  div16  ) 

整数型の sin()

整数型の sin()

Parameters:
div16 [i] 角度[div16]
Return values:
divid_max * sin(2.0 * M_PI * div16 / 65536.0)

Definition at line 1671 of file isincos.c.

int icos ( unsigned short  div16  ) 

整数型の cos()

整数型の cos()。

Parameters:
div16 [i] 角度[div16]
Return values:
divid_max * cos(2.0 * M_PI * div16 / 65536.0)

Definition at line 1695 of file isincos.c.


Generated on Mon Apr 13 22:52:06 2009 by  doxygen 1.5.7.1