Prevent eye gaze extrapolation

This commit is contained in:
Patrick Nicolas
2026-02-04 09:37:26 +01:00
parent 67f4ced505
commit 30fddf7518
4 changed files with 27 additions and 1 deletions
+18 -1
View File
@@ -100,7 +100,24 @@ public:
}
}
sample get_at(XrTime timestamp)
std::pair<XrTime, XrTime> get_bounds() const
{
std::pair<XrTime, XrTime> result{
std::numeric_limits<XrTime>::max(),
std::numeric_limits<XrTime>::lowest(),
};
for (const auto & sample: data)
{
if (sample.y)
{
result.first = std::min(result.first, sample.timestamp);
result.second = std::max(result.second, sample.timestamp);
}
}
return result;
}
sample get_at(XrTime timestamp) const
{
Eigen::Matrix<float, 2 * stored_samples, polynomial_order + 1> A;
Eigen::Matrix<float, 2 * stored_samples, N> b;