home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / star.lzh / star.1 / observe / degree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-27  |  896 b   |  30 lines

  1. /*
  2.  * degree.h
  3.  * functions to deal with trigonometry in degrees
  4.  *
  5.  * Copyright (c) 1990 by Craig Counterman. All rights reserved.
  6.  *
  7.  * This software may be redistributed freely, not sold.
  8.  * This copyright notice and disclaimer of warranty must remain
  9.  *    unchanged. 
  10.  *
  11.  * No representation is made about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without express or
  13.  * implied warranty, to the extent permitted by applicable law.
  14.  *
  15.  */
  16. /*
  17.  * $Header: degree.h,v 1.4 90/02/19 17:22:01 ccount Exp $
  18.  */
  19.  
  20.  
  21. #define DEG_TO_RAD 0.01745329251994329600
  22. #define RAD_TO_DEG 57.29577951308232
  23. #define DSIN(x) (sin((x)*DEG_TO_RAD))
  24. #define DCOS(x) (cos((x)*DEG_TO_RAD))
  25. #define DTAN(x) (tan((x)*DEG_TO_RAD))
  26. #define DASIN(x) (asin(x)*RAD_TO_DEG)
  27. #define DACOS(x) (acos(x)*RAD_TO_DEG)
  28. #define DATAN(x) (atan(x)*RAD_TO_DEG)
  29. #define DATAN2(x,y) (atan2(x,y)*RAD_TO_DEG)
  30.