pysdic.PlanarRigidExtrinsic.rotation_matrix#

property PlanarRigidExtrinsic.rotation_matrix: ndarray | None#

[Get/Set] the 2D rotation matrix \(R(\theta)\).

\[\begin{split}R(\theta) = \begin{bmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{bmatrix}\end{split}\]

When the matrix is set, the angle is computed with \(\theta = \text{arctan2}(R_{10}, R_{00})\) in \((-\pi, \pi]\).

Note

An alias for rotation_matrix is rmat.

Note

The rotation matrix can only be set if all the parameters are already set.

Parameters:

rmat (ArrayLike) – The rotation matrix with shape (2, 2). It must be orthonormal with a determinant equal to +1.

Returns:

The rotation matrix with shape (2, 2). (or None if the parameters are not set)

Return type:

Optional[numpy.ndarray]