libvmath4
diff src/quat.h @ 0:4d6383605d64
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 05 Oct 2014 04:00:05 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/quat.h Sun Oct 05 04:00:05 2014 +0300 1.3 @@ -0,0 +1,25 @@ 1.4 +#ifndef QUAT_H_ 1.5 +#define QUAT_H_ 1.6 + 1.7 +namespace vmath { 1.8 + 1.9 +class Vector4; 1.10 + 1.11 +class Quat { 1.12 +public: 1.13 + float x, y, z, w; 1.14 + 1.15 + Quat(); 1.16 + Quat(float x, float y, float z, float w); 1.17 + Quat(const float *v); 1.18 + Quat(const Vector4 &v); 1.19 + 1.20 + float &operator [](int idx); 1.21 + const float &operator [](int idx) const; 1.22 +}; 1.23 + 1.24 +#include "quat.inl" 1.25 + 1.26 +} // namespace vmath 1.27 + 1.28 +#endif // QUAT_H_