source: golgotha/src/maxtool/sdk_inc/trig.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 710 bytes
Line 
1/**********************************************************************
2 *<
3        FILE: trig.h
4
5        DESCRIPTION:  Useful trigonometry macros
6
7        CREATED BY: Rolf Berteig
8
9        HISTORY: created 19 November 1994
10
11 *>     Copyright (c) 1994, All Rights Reserved.
12 **********************************************************************/
13
14#ifndef __TRIG__
15#define __TRIG__
16
17#define PI  ((float)3.1415926535)
18#define TWOPI ((float)6.283185307)
19#define HALFPI ((float)1.570796326794895)
20
21#define DEG_TO_RAD (PI/(float)180.0)
22#define RAD_TO_DEG ((float)180.0/PI)
23#define DegToRad(deg) (((float)deg)*DEG_TO_RAD)
24#define RadToDeg(rad) (((float)rad)*RAD_TO_DEG)
25
26
27#endif // __TRIG_H__
Note: See TracBrowser for help on using the repository browser.