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