Go to the source code of this file.
◆ AddProtoToConfig
AddProtoToConfig
Set a single proto bit in the specified configuration.
Definition at line 73 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 82 of file protos.h.
◆ CLASS_TYPE
◆ CLASSES
◆ CONFIGS
◆ PROTO
◆ AddConfigToClass()
◆ AddProtoToClass()
◆ FillABC()
void FillABC |
( |
PROTO |
Proto | ) |
|
Definition at line 105 of file protos.cpp.
108 float Slope, Intercept, Normalizer;
110 Slope = tan(Proto->
Angle * 2.0 * M_PI);
111 Intercept = Proto->
Y - Slope * Proto->
X;
112 Normalizer = 1.0 / sqrt (Slope * Slope + 1.0);
113 Proto->
A = Slope * Normalizer;
114 Proto->
B = -Normalizer;
◆ FreeClass()
◆ FreeClassFields()
◆ InitPrototypes()
◆ NewClass()
CLASS_TYPE NewClass |
( |
int |
NumProtos, |
|
|
int |
NumConfigs |
|
) |
| |