diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h index 35d6bcd..e8896ed 100644 --- a/src/common.h +++ b/src/common.h @@ -10,6 +10,14 @@ typedef double long real; typedef struct { + real r; +} radians; + +typedef struct { + int d; +} degrees; + +typedef struct { real x; real y; real z; @@ -27,9 +35,9 @@ typedef struct { struct camera { c3_t p; - int xr;//rotations - int yr; - int zr; + degrees xr;//rotations + degrees yr; + degrees zr; real zoom; } camera; |