mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
a/math: Put m_relation_history_get out argument last
This commit is contained in:
parent
ed48e6d47d
commit
efde7f185c
|
@ -81,7 +81,7 @@ m_relation_history_push(struct m_relation_history *rh, struct xrt_space_relation
|
|||
}
|
||||
|
||||
enum m_relation_history_result
|
||||
m_relation_history_get(struct m_relation_history *rh, struct xrt_space_relation *out_relation, uint64_t at_timestamp_ns)
|
||||
m_relation_history_get(struct m_relation_history *rh, uint64_t at_timestamp_ns, struct xrt_space_relation *out_relation)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
os_mutex_lock(&rh->mutex);
|
||||
|
|
|
@ -63,7 +63,7 @@ m_relation_history_push(struct m_relation_history *rh, struct xrt_space_relation
|
|||
* @public @memberof m_relation_history
|
||||
*/
|
||||
enum m_relation_history_result
|
||||
m_relation_history_get(struct m_relation_history *rh, struct xrt_space_relation *out_relation, uint64_t at_time_ns);
|
||||
m_relation_history_get(struct m_relation_history *rh, uint64_t at_time_ns, struct xrt_space_relation *out_relation);
|
||||
|
||||
/*!
|
||||
* Destroys an opaque relation_history object.
|
||||
|
|
|
@ -408,7 +408,7 @@ rs_ddev_get_tracked_pose(struct xrt_device *xdev,
|
|||
return;
|
||||
}
|
||||
|
||||
m_relation_history_get(rs->relation_hist, out_relation, at_timestamp_ns);
|
||||
m_relation_history_get(rs->relation_hist, at_timestamp_ns, out_relation);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -332,7 +332,7 @@ survive_device_get_tracked_pose(struct xrt_device *xdev,
|
|||
return;
|
||||
}
|
||||
|
||||
m_relation_history_get(survive->relation_hist, out_relation, at_timestamp_ns);
|
||||
m_relation_history_get(survive->relation_hist, at_timestamp_ns, out_relation);
|
||||
|
||||
struct xrt_pose *p = &out_relation->pose;
|
||||
SURVIVE_TRACE(survive, "GET_POSITION (%f %f %f) GET_ORIENTATION (%f, %f, %f, %f)", p->position.x, p->position.y,
|
||||
|
@ -434,7 +434,7 @@ survive_controller_get_hand_tracking(struct xrt_device *xdev,
|
|||
|
||||
struct xrt_space_relation hand_relation;
|
||||
|
||||
m_relation_history_get(survive->relation_hist, &hand_relation, at_timestamp_ns);
|
||||
m_relation_history_get(survive->relation_hist, at_timestamp_ns, &hand_relation);
|
||||
|
||||
u_hand_joints_set_out_data(&survive->ctrl.hand_tracking, hand, &hand_relation, &hand_on_handle_pose, out_value);
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ vive_device_get_tracked_pose(struct xrt_device *xdev,
|
|||
// Clear out the relation.
|
||||
U_ZERO(out_relation);
|
||||
|
||||
m_relation_history_get(d->relation_hist, out_relation, at_timestamp_ns);
|
||||
m_relation_history_get(d->relation_hist, at_timestamp_ns, out_relation);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue