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
/
main.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-08
|
467b
|
28 lines
//Copyright 1996 Aidan+Brian Cully
//All rights reserved
#include <math.h>
#include "ConicApp.h"
p3d rotpoint(p3d,float);
main() {
TConicApp app;
app.Init();
app.EventLoop();
return(0);
}
p3d rotpoint(p3d point,float deg) {
p3d threepoint;
float costh,sinth;
sinth = sin(deg*_PI/180);
costh = cos(deg*_PI/180);
threepoint.x = point.x*costh - point.y*sinth;
threepoint.y = point.x*sinth + point.y*costh;
threepoint.z = point.z;
return(threepoint);
}