trans.h

来自「LinPacker是一个优化矩形布局的工具」· C头文件 代码 · 共 37 行

H
37
字号
#include "rect.h"#include <qvaluevector.h>class trans{private:			QValueVector <int> permutations;	QValueVector <bool> orientations;	float	taille;	void	setIndex(int i, int b);	void	setPosit(int i, bool b);	public:	trans();	//trans(trans t1,trans t2);	void mutationI();	void mutationB();		void transformer();		int	getIndex(int i);	bool	getPosit(int i);				void	setTaille(float i);	float	getTaille();	void crossoverI(trans t1,trans t2);	void crossoverB(trans t1,trans t2);};bool operator< (trans x, trans y);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?