📄 rtg.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -