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
/
Include
/
Conic.h
< prev
next >
Wrap
Text File
|
1996-11-13
|
785b
|
47 lines
//Copyright 1996 Brian+Aidan Cully
//All rights reserved
#ifndef __CONIC_H
#define __CONIC_H
#include "LTypes.h"
#include "Angle.h"
#define CONICPARTS 80
class TPlane {
protected:
float pdis;
void CalcNormal();
TAngle pang;
p3d *aplane;
public:
p3d *plane;
p3d pnorm;
TPlane();
~TPlane();
void Init();
void Kill();
void SetDistance( float dis );
float GetDistance() {return( pdis );};
void SetAngle( float );
float GetAngle() {return(pang.GetAngle());};
float GetSinAngle() {return(pang.GetSinAngle());};
float GetCosAngle() {return(pang.GetCosAngle());};
void RotPlane();
};
class TConic {
protected:
p3d *aconic;
public:
int tnumint, *intersect;
p3d *conic;
TConic();
~TConic();
void Init();
void Kill();
void CalcIntersect( const TPlane & );
};
#endif