⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ellipsoid.h

📁 [Game.Programming].Academic - Graphics Gems (6 books source code)
💻 H
字号:
/* ellipsoid.h */#ifndef ellipsoid_H#define ellipsoid_Htypedef struct point { float x, y, z; } point;typedef struct vertex {    point p, n;         /* point and unit normal */} vertex;typedef struct face {    int v0, v1, v2;     /* indices of vertex array for a triangular face */} face;typedef struct object {    int nv, nf;         /* numbers of elements in v and f */    vertex *v; face *f; /* arrays of vertices and faces */} object;void ellipsoid_init (int n);void ellipsoid_seq (object *ellipsoid, int n, float a, float b, float c);void ellipsoid_par (object *ellipsoid, int n, float a, float b, float c);void ellipsoid_print (object *ellipsoid);void ellipsoid_done (void);void ellipsoid_free (object *ellipsoid);#endif /* ellipsoid_H */

⌨️ 快捷键说明

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