rtg.h
来自「一个可执行的nbc算法设计与实现 有助大家互相探讨学习」· C头文件 代码 · 共 49 行
H
49 行
#ifndef RTG_H
#define RTG_H
#include "queue.h"
class RTG
{
private:
int MinLns;
double R;
double cosv;
double sinv;
cluster_line *first_line;
cluster *first_cluster;
TRA *first_tra;
TRA *last_tra;
xpoint *xp_first;
public:
RTG(int MIN,double r,cluster *cl)
{
xp_first=NULL;
MinLns=MIN;
R=r;
first_cluster=cl;
first_tra=last_tra=NULL;
}
void compute_avgv();
void rotate_axes();
void undo_rotation();
int insert_sort(double x);
int compute_nump(xpoint *xp,double &sumy);
void sweep_line();
void get_pointrange(cluster_line *cl,double &max,double &min);
double compute_y(cluster_line *cl,double x);
void insert_point(double x,double y);
void new_tra();
void get_Rtra();
TRA *get_first_tra();
void output_Rta();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?