1 Star 0 Fork 0

fuchen9475/wfb-ng-osd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
m2dlib.h 907 Bytes
一键复制 编辑 原始数据 按行查看 历史
Vasily Evseenko 提交于 2017-03-28 18:19 . Initial commit
#ifndef M2DLIB_H__
#define M2DLIB_H__
#include "math3d.h"
// DEFINES ////////////////////////////////////////////////////
#define OBJECT2DV1_MAX_VERTICES 80
// a 2D polygon
typedef struct POLYGON2D_TYP
{
int state; // state of polygon
int num_verts; // number of vertices
int x0, y0; // position of center of polygon
VERTEX2DF vlist_local[OBJECT2DV1_MAX_VERTICES]; // pointer to vertex list
VERTEX2DF vlist_trans[OBJECT2DV1_MAX_VERTICES]; // pointer to vertex list
} POLYGON2D, *POLYGON2D_PTR;
void Reset_Polygon2D(POLYGON2D_PTR poly);
int Transform_Polygon2D(POLYGON2D_PTR poly, float roate, float tx, float ty);
int Translate_Polygon2D(POLYGON2D_PTR poly, float dx, float dy);
int Rotate_Polygon2D(POLYGON2D_PTR poly, float theta);
int Scale_Polygon2D(POLYGON2D_PTR poly, float sx, float sy);
int Clip_Line(VECTOR4D_PTR v);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fuchen9475/wfb-ng-osd.git
[email protected]:fuchen9475/wfb-ng-osd.git
fuchen9475
wfb-ng-osd
wfb-ng-osd
master

搜索帮助