diff options
author | Simponic <loganthebean222@gmail.com> | 2020-08-04 23:36:21 -0600 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-08-04 23:36:21 -0600 |
commit | ebd81999b71ada201a316060fa47a7a66a277935 (patch) | |
tree | 930be8337e1144ba227bedb3e72e4473309c28e8 /src/plane.h | |
parent | b323ae0ca067deb0a48e3d9088160383d698a28f (diff) | |
download | simple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.tar.gz simple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.zip |
Added files
Diffstat (limited to 'src/plane.h')
-rw-r--r-- | src/plane.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/plane.h b/src/plane.h new file mode 100644 index 0000000..f83350f --- /dev/null +++ b/src/plane.h @@ -0,0 +1,21 @@ +#include "defs.h" +#include "vertex.h" +#include "fixed.h" + +#ifndef PLANE_H +#define PLANE_H + +typedef struct PLANE { + VERTEX normal; + FIXED distance; +} PLANE; + +static inline PLANE createPlane(VERTEX *normal, FIXED distance) { + // Create a plane from data + PLANE temp; + temp.normal = *normal; + temp.distance = distance; + return temp; +} + +#endif // PLANE_H |