Add hand tracking

This commit is contained in:
Guillaume Meunier
2024-02-25 16:09:32 +01:00
parent 91f6dc08f0
commit a2271d486a
23 changed files with 615 additions and 93 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
using namespace xrt::auxiliary::math;
using namespace xrt::drivers::wivrn;
xrt_space_relation interpolate(const xrt_space_relation & a, const xrt_space_relation & b, float t)
xrt_space_relation pose_list::interpolate(const xrt_space_relation & a, const xrt_space_relation & b, float t)
{
xrt_space_relation result;
xrt_space_relation_flags flags = xrt_space_relation_flags(a.relation_flags & b.relation_flags);
@@ -35,7 +35,7 @@ xrt_space_relation interpolate(const xrt_space_relation & a, const xrt_space_rel
return result;
}
xrt_space_relation extrapolate(const xrt_space_relation & a, const xrt_space_relation & b, uint64_t ta, uint64_t tb, uint64_t t)
xrt_space_relation pose_list::extrapolate(const xrt_space_relation & a, const xrt_space_relation & b, uint64_t ta, uint64_t tb, uint64_t t)
{
if (t < ta)
return a;