Skip to content

Commit 0d79101

Browse files
committed
add alias to real part of quaternion
1 parent 8c4a370 commit 0d79101

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

geometry/geometry_datatypes.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ typedef struct mat_3x3_
5959
*/
6060
typedef struct quaternion_
6161
{
62-
float w; /**< real part of quaternion */
62+
union
63+
{
64+
float w; /**< real part of quaternion */
65+
float q0; /**< real part of quaternion */
66+
};
6367
/**< dual part of quaternion */
6468
union
6569
{

0 commit comments

Comments
 (0)