summaryrefslogtreecommitdiffstats
path: root/src/fakerw/rtquat.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-25 15:56:20 +0200
committeraap <aap@papnet.eu>2020-04-25 15:56:20 +0200
commitea79cc4469dbe377e2da9e5019c1d709e95140d0 (patch)
tree825f07f2c985827d0732505e845605e53d3040b9 /src/fakerw/rtquat.h
parentfixed shooting target (diff)
downloadre3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.gz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.bz2
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.lz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.xz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.zst
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.zip
Diffstat (limited to '')
-rw-r--r--src/fakerw/rtquat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fakerw/rtquat.h b/src/fakerw/rtquat.h
index 3cf15f5a..450342b2 100644
--- a/src/fakerw/rtquat.h
+++ b/src/fakerw/rtquat.h
@@ -1,6 +1,11 @@
#pragma once
-typedef rw::Quat RtQuat;
+// Same layout as rw::Quat but with ugly imag,real separation which i don't want in librw
+struct RtQuat
+{
+ rw::V3d imag;
+ rw::float32 real;
+};
RwBool RtQuatConvertFromMatrix(RtQuat * const qpQuat, const RwMatrix * const mpMatrix);
RtQuat *RtQuatRotate(RtQuat * quat, const RwV3d * axis, RwReal angle, RwOpCombineType combineOp);