5.3.4.113. Function motion_update_pos
Defined in File motion_struct.h
5.3.4.113.1. Function Documentation
-
hcoord_t motion_update_pos(const tmat3x3_t *tmat, const float x, const float y)
Considering a position \(q1\), computes the new position \(q2\) after applying a
tmat3x3_ttransformation matrix. This implementation is optimized for rigid transformations only.\[\begin{split} T_{3 \times3 } ~~ . ~ \begin{bmatrix} q1_x \\ q1_y \\ 1 \end{bmatrix} = \begin{bmatrix} q2_x \\ q2_y \\ 1 \end{bmatrix}. \end{split}\]