From 0d791016053ff1c25663e2af281cdfecc19cd9b8 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Mon, 17 Aug 2020 14:01:38 -0400 Subject: [PATCH] add alias to real part of quaternion --- geometry/geometry_datatypes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/geometry/geometry_datatypes.h b/geometry/geometry_datatypes.h index 820862fe..a9238845 100644 --- a/geometry/geometry_datatypes.h +++ b/geometry/geometry_datatypes.h @@ -59,7 +59,11 @@ typedef struct mat_3x3_ */ typedef struct quaternion_ { - float w; /**< real part of quaternion */ + union + { + float w; /**< real part of quaternion */ + float q0; /**< real part of quaternion */ + }; /**< dual part of quaternion */ union {