VSM C++ SDK
Vehicle Specific Modules SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
quaternion.h
1 // Copyright (c) 2018, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
5 #ifndef _UGCS_VSM_QUATERNION_H_
6 #define _UGCS_VSM_QUATERNION_H_
7 
8 namespace ugcs {
9 namespace vsm {
10 
11 class Quaternion {
12 public:
13  void
14  Multiply(const Quaternion& q);
15 
16  void
17  Get_eulers(float& pitch, float& roll, float& yaw);
18 
19  void
20  Set_from_eulers(float pitch, float roll, float yaw);
21 
22  float x = 0;
23  float y = 0;
24  float z = 0;
25  float w = 1;
26 };
27 
28 } /* namespace vsm */
29 } /* namespace ugcs */
30 
31 #endif /* _UGCS_VSM_QUATERNION_H_ */
Definition: quaternion.h:11