NUM_RADAR_ARCS=8
public:
float detect_ratio[NUM_RADAR_ARCS];
// tan(detection_angle)- basically, ratio of
// altitude to distance above which we can see
public:
int GetNumberOfArcs (void)
{ return NUM_RADAR_ARCS; };
float GetArcRatio (int anum)
{ return detect_ratio[anum]; };
float GetArcRange (int anum)
{ return ALT_FOR_RANGE_DETERMINATION/detect_ratio[anum]; };
int CanDetect (float dx, float
dy, float dz);
float GetRadarRange (float dx, float dy, float dz);
void GetArcAngle (int anum, float* a1,
float *a2) { *a1 = anum * (360/NUM_RADAR_ARCS) * DTR;
*a2 = (anum+1) * (360/NUM_RADAR_ARCS) * DTR; };
void SetArcRatio (int anum, float ratio)
{ detect_ratio[anum] = ratio; };