From f9be2ace4ca871d7ad68c1a4dbdcff87511d838b Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 30 May 2019 23:03:58 -0400 Subject: Add some useful stuff --- include/fml/quat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/fml/quat.h') diff --git a/include/fml/quat.h b/include/fml/quat.h index 14c966e..67a89d5 100644 --- a/include/fml/quat.h +++ b/include/fml/quat.h @@ -15,11 +15,15 @@ namespace fml { quat(vec3 vec); quat(); - operator vec3(); + operator vec3() const; quat conjugate() const; + /* returns */ static quat from_angleaxis(scalar angle, vec3 axis); + + /* returns rotquat * this * rotquat.conj */ + quat rotateby(const quat &rotquat) const; }; quat operator*(const quat &, const quat &); -- cgit v1.1