Example of using the BTL : Least Squares Fitting Two Sets of Coordinates
Code Sample