-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskeletonjoint_b.cpp
More file actions
42 lines (32 loc) · 810 Bytes
/
skeletonjoint_b.cpp
File metadata and controls
42 lines (32 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Alexandre Coninx
// Imperial College London, 21/05/2014
#include "skeletonjoint_b.hpp"
SkeletonJoint_b::SkeletonJoint_b()
{
joint = new nite::SkeletonJoint;
}
SkeletonJoint_b::SkeletonJoint_b(const nite::SkeletonJoint & sj)
{
joint = new nite::SkeletonJoint(sj); //Inefficient but better than trying to second guess NiTE's reference handling
}
py::list SkeletonJoint_b::getOrientation()
{
py::list l;
l.append(joint->getOrientation().w);
l.append(joint->getOrientation().x);
l.append(joint->getOrientation().y);
l.append(joint->getOrientation().z);
return l;
}
py::list SkeletonJoint_b::getPosition()
{
py::list l;
l.append(joint->getPosition().x);
l.append(joint->getPosition().y);
l.append(joint->getPosition().z);
return l;
}
SkeletonJoint_b::~SkeletonJoint_b()
{
delete joint;
}