home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / cpp / graphics / Conics.sit.hqx / Conics / Sources / Angle.cpp next >
Text File  |  1996-11-08  |  259b  |  12 lines

  1. //Copyright 1996 Aidan+Brian Cully
  2. //All rights reserved
  3.  
  4. #include <math.h>
  5. #include "angle.h"
  6.  
  7. void TAngle::SetAngle( float newAngle ) {
  8.     angle = newAngle;
  9.     angle = fmod( angle+360, 360 );
  10.     sinangle = sin( angle*_PI/180 );
  11.     cosangle = cos( angle*_PI/180 );
  12. }