topography.h

来自「ns2.1b5版本中cbrp碼」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef __topography_h__#define __topography_h__#include <object.h>class Topography : public TclObject {public:	Topography() { maxX = maxY = grid_resolution = 0.0; grid = 0; }	double	lowerX() { return 0.0; }	double	upperX() { return maxX * grid_resolution; }	double	lowerY() { return 0.0; }	double	upperY() { return maxY * grid_resolution; }	double	resol() { return grid_resolution; }	double	height(double x, double y);private:	virtual int command(int argc, const char*const* argv);	int	load_flatgrid(int x, int y, int res = 1);	int	load_demfile(const char *fname);	double	maxX;	double	maxY;	double	grid_resolution;	int*	grid;};#endif

⌨️ 快捷键说明

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