summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/sincos.h
blob: b3d8c9f30589613c8d92dad80b83708884371663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//Author:    Max Howell <max.howell@methylblue.com>, (C) 2003-4
//Copyright: See COPYING file that comes with this distribution

#ifndef SINCOS_H
#define SINCOS_H

#include <math.h>

#if !defined(__GLIBC__) || (__GLIBC__ < 2) ||  (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)

   void
   sincos( int angleRadians, double *Sin, double *Cos );

#ifdef SINCOS_H_IMPLEMENTATION
   void
   sincos( int angleRadians, double *Sin, double *Cos )
   {
      *Sin = sin( angleRadians );
      *Cos = cos( angleRadians );
   }
#endif

#endif

#endif