2D Euclidean
m2_euclidean(a, b)
a
numeric, 2: translation
b
numeric, 2: all other coefficients
matrix 3x3
m2_euclidean(c(2, 3), c(1, 0.5))