getAffineMatrix
Return matrix for affine transform in 3D.
Syntax
affine = getAffineMatrix(translation, rotation)
Description
getAffineMatrix
returns an affine matrix defined by the specified translation and rotation.
Inputs
translation |
translation given as [dx, dy] in 2D and [dx, dy, dz] in 3D |
rotation |
rotation angle/s in degrees given as [th] in 2D (counter-clockwise) and [x_th, y_th, z_th] in 3D (rotate about x then y' then z'') [degrees] |
Outputs
affine |
affine transformation matrix |
See Also
computeLinearTransform