diff options
| author | Tyge Løvset <[email protected]> | 2020-03-27 18:15:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-27 18:15:43 +0100 |
| commit | 91389b7b6e322f65d889d75f030a2091cb794722 (patch) | |
| tree | 46ea3996cebb19dc350677645bd9894d0400d130 | |
| parent | 4631dd44685b84634455e1bfb5f4fee8177468ea (diff) | |
| download | STC-modified-91389b7b6e322f65d889d75f030a2091cb794722.tar.gz STC-modified-91389b7b6e322f65d889d75f030a2091cb794722.zip | |
Add files via upload
| -rw-r--r-- | c_lib/cvec3.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/c_lib/cvec3.h b/c_lib/cvec3.h index c70ab894..0f9429ab 100644 --- a/c_lib/cvec3.h +++ b/c_lib/cvec3.h @@ -133,10 +133,17 @@ declare_CVec3(d, double);
declare_CVec3(f, float);
declare_CVec3(i, int32_t);
-declare_CVec3(ui, uint32_t);
-declare_CVec3(s, int16_t);
-declare_CVec3(us, uint16_t);
+//declare_CVec3(ui, uint32_t);
+//declare_CVec3(s, int16_t);
+//declare_CVec3(us, uint16_t);
declare_CVec3(ub, uint8_t);
+static inline CVec3d cvec3f_to3d(CVec3f v) { \
+ Vec3d w = {v.x, v.y, v.z}; return w;
+}
+static inline CVec3f cvec3d_to3f(CVec3d v) { \
+ Vec3f w = {(float) v.x, (float) v.y, (float) v.z}; return w;
+}
+
#endif
|
