diff options
author | vg <vgm+dev@devys.org> | 2020-07-07 16:24:01 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2020-07-07 16:24:01 +0200 |
commit | 66dcf910bd4744d8ced56cb9586aa937a1a2d4c5 (patch) | |
tree | df4dca1ae4af1e5df0be0d1f4f2cd0d54751f8e8 /instructables/cube_pc/draw_3d.h | |
download | hic-66dcf910bd4744d8ced56cb9586aa937a1a2d4c5.tar.gz hic-66dcf910bd4744d8ced56cb9586aa937a1a2d4c5.tar.bz2 hic-66dcf910bd4744d8ced56cb9586aa937a1a2d4c5.zip |
Diffstat (limited to 'instructables/cube_pc/draw_3d.h')
-rw-r--r-- | instructables/cube_pc/draw_3d.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/instructables/cube_pc/draw_3d.h b/instructables/cube_pc/draw_3d.h new file mode 100644 index 0000000..0f56033 --- /dev/null +++ b/instructables/cube_pc/draw_3d.h @@ -0,0 +1,26 @@ +#include <stdlib.h> + +#ifndef DRAW3D_H +#define DRAW3D_H + + +typedef struct { + float x; + float y; + float z; +} vertex; + +typedef struct { + int x; + int y; + int z; +} intvertex; + +vertex point_rotate_around_point (vertex point, vertex center, float rotation_x, float rotation_y, float rotation_z); + +void rotate_cube_contents(float rx, float ry, float rz); + +void calculate_cube_corners (vertex points[8], vertex center, float size); + + +#endif |