lm2euclidean function

Computes model for the euclidean transformation