add quaternion

This commit is contained in:
Nishi 2026-06-06 01:28:10 +09:00
commit 748d52c9c9
3 changed files with 20 additions and 2 deletions

View file

@ -27,6 +27,16 @@ namespace fishbone {
float y;
float z;
};
struct Quaternion {
struct fishbone::Quaternion operator+(struct fishbone::Quaternion q) const;
struct fishbone::Quaternion operator-(struct fishbone::Quaternion q) const;
float w;
float x;
float y;
float z;
};
}; // namespace fishbone
#endif