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
}
Treehopper::Libraries::quaternion_t::y
float y
Definition:
Types.h:30
Treehopper::Libraries::vector3_t::y
float y
Definition:
Types.h:9
Treehopper::Libraries::operator<<
std::ostream & operator<<(std::ostream &os, const vector3_t &v)
Definition:
Types.h:13
Treehopper::Libraries::quaternion_t::z
float z
Definition:
Types.h:31
Treehopper::Libraries::quaternion_t
Definition:
Types.h:27
Treehopper::Libraries::vector3_t
Definition:
Types.h:7
Treehopper::Libraries::vector3_t::x
float x
Definition:
Types.h:8
Treehopper::Libraries::vector3_t::z
float z
Definition:
Types.h:10
Treehopper::Libraries::quaternion_t::w
float w
Definition:
Types.h:28
Treehopper::Libraries::eularAngles_t::roll
float roll
Definition:
Types.h:19
Treehopper::Libraries::eularAngles_t
Definition:
Types.h:17
Treehopper
Definition:
AdcPin.h:3
Treehopper::Libraries::eularAngles_t::pitch
float pitch
Definition:
Types.h:20
Treehopper::Libraries::eularAngles_t::yaw
float yaw
Definition:
Types.h:18
Treehopper::Libraries::quaternion_t::x
float x
Definition:
Types.h:29
C++
API
inc
Libraries
Types.h