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 >
Wrap
Text File
|
1996-11-08
|
259b
|
12 lines
//Copyright 1996 Aidan+Brian Cully
//All rights reserved
#include <math.h>
#include "angle.h"
void TAngle::SetAngle( float newAngle ) {
angle = newAngle;
angle = fmod( angle+360, 360 );
sinangle = sin( angle*_PI/180 );
cosangle = cos( angle*_PI/180 );
}