Chipmunk矢量:cpVect结构体定义、常量和构造函数定义: typedef struct cpVect{ cpFloat x, y;} cpVect零向量常量: static const cpVect cpvzero = {0.0f,0.0f};创建新结构体所用的便捷的构造函数: cpVect cpv(const cpFloat x, const cpFloat y)