#include "bitvec.h"
#include "params.h"
#include "unichar.h"
#include "unicity_table.h"
Go to the source code of this file.
◆ AddProtoToConfig
AddProtoToConfig
Set a single proto bit in the specified configuration.
Definition at line 75 of file protos.h.
◆ ProtoIn
#define ProtoIn |
( |
|
Class, |
|
|
|
Pid |
|
) |
| (&(Class)->Prototypes[Pid]) |
ProtoIn
Choose the selected prototype in this class record. Return the pointer to it (type PROTO).
Definition at line 84 of file protos.h.
◆ CLASS_TYPE
◆ CLASSES
◆ CONFIGS
◆ PROTO
◆ AddConfigToClass()
Definition at line 47 of file protos.cpp.
void * Erealloc(void *ptr, int size)
◆ AddProtoToClass()
◆ FillABC()
void FillABC |
( |
PROTO |
Proto | ) |
|
Definition at line 108 of file protos.cpp.
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;
◆ FreeClass()
Definition at line 125 of file protos.cpp.
void FreeClassFields(CLASS_TYPE Class)
◆ FreeClassFields()
◆ InitPrototypes()
◆ NewClass()
CLASS_TYPE NewClass |
( |
int |
NumProtos, |
|
|
int |
NumConfigs |
|
) |
| |