5.3.4.110. Function motion_get_theta

5.3.4.110.1. Function Documentation

float motion_get_theta(const tmat3x3_t *tmat)

Extract the rotation angle \(\theta\) from a tmat3x3_t transformation matrix. Compute the arc tangent of \( y / x \) (= \(\arctan(\frac{\sin(\theta)}{\cos(\theta)})\)).

Parameters

tmat – An allocated tmat3x3_t and initialized transformation matrix.

Returns

\(\theta\) angle in radians (range: \([-\pi;+\pi]\)).