libvmath4

view 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 source
1 #ifndef QUAT_H_
2 #define QUAT_H_
4 namespace vmath {
6 class Vector4;
8 class Quat {
9 public:
10 float x, y, z, w;
12 Quat();
13 Quat(float x, float y, float z, float w);
14 Quat(const float *v);
15 Quat(const Vector4 &v);
17 float &operator [](int idx);
18 const float &operator [](int idx) const;
19 };
21 #include "quat.inl"
23 } // namespace vmath
25 #endif // QUAT_H_