Treehopper C++ API
Types.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 
5 namespace Treehopper {
6  namespace Libraries {
7  struct vector3_t {
8  float x;
9  float y;
10  float z;
11  };
12 
13  inline std::ostream& operator<<(std::ostream& os, const vector3_t& v) {
14  return os << "[x: " << v.x << ", y: " << v.y << ", z: " << v.z << "]";
15  }
16 
17  struct eularAngles_t {
18  float yaw;
19  float roll;
20  float pitch;
21  };
22 
23  inline std::ostream& operator<<(std::ostream& os, const eularAngles_t& v) {
24  return os << "[yaw: " << v.yaw << ", roll: " << v.roll << ", pitch: " << v.pitch << "]";
25  }
26 
27  struct quaternion_t {
28  float w;
29  float x;
30  float y;
31  float z;
32  };
33 
34  inline std::ostream& operator<<(std::ostream& os, const quaternion_t& v) {
35  return os << "[w: " << v.w << ", x: " << v.x << ", y: " << v.y << ", z: " << v.z << "]";
36  }
37  }
38 }
float y
Definition: Types.h:30
float y
Definition: Types.h:9
std::ostream & operator<<(std::ostream &os, const vector3_t &v)
Definition: Types.h:13
float z
Definition: Types.h:31
float x
Definition: Types.h:8
float z
Definition: Types.h:10
float w
Definition: Types.h:28
float roll
Definition: Types.h:19
Definition: AdcPin.h:3
float pitch
Definition: Types.h:20
float yaw
Definition: Types.h:18
float x
Definition: Types.h:29