const.h

来自「多机器人合作中的动态角色分配仿真算法是多机器人合作领域的一个比较著名的仿真软件」· C头文件 代码 · 共 36 行

H
36
字号
#if !defined(CONST_H)
#define CONST_H

#include "math.h"

#define ONE_ROBOT

#define round(x)	( (int) (x + 0.5) )
#define sqr(x)	( x * x )

#define PI 3.1415926535

static CBrush CYAN(RGB(0,255,255));
static CBrush RED(RGB(255,0,0));
static CBrush BLUE(RGB(0,0,255));
static CBrush MAGENTA(RGB(255,0,255));
static CBrush YELLOW(RGB(255,255,0));
static CBrush GRAY(RGB(200,200,200));

static CPen RED_PEN(PS_SOLID, 0, RGB(255,0,0));
static CPen BLUE_PEN(PS_SOLID, 0, RGB(0,0,255));
static CPen BLACK(PS_DOT, 0, RGB(0,0,0));

// Button Selection
#define SELECT				0
#define CIRCLEOBST			1
#define	RECTOBST			2
#define	POLYGONOBST			3
#define CIRCLEBOX			4
#define	RECTBOX				5
#define	POLYGONBOX			6
#define LABMATEROBOT		7
#define	HOLONOMICROBOT		8
#define	NONHOLONOMICROBOT	9

#endif

⌨️ 快捷键说明

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