22#define _USE_MATH_DEFINES
33#define PROTO_INCREMENT 32
34#define CONFIG_INCREMENT 16
109 float Slope, Intercept, Normalizer;
111 Slope = tan(Proto->
Angle * 2.0 * M_PI);
112 Intercept = Proto->
Y - Slope * Proto->
X;
113 Normalizer = 1.0 / sqrt (Slope * Slope + 1.0);
114 Proto->
A = Slope * Normalizer;
115 Proto->
B = -Normalizer;
116 Proto->
C = Intercept * Normalizer;
void FreeClass(CLASS_TYPE Class)
int AddProtoToClass(CLASS_TYPE Class)
void FreeClassFields(CLASS_TYPE Class)
int AddConfigToClass(CLASS_TYPE Class)
void FillABC(PROTO Proto)
CLASS_TYPE NewClass(int NumProtos, int NumConfigs)
void * Erealloc(void *ptr, int size)