Function to minimize to fit the shift and rotation in the WCS.
Parameters
----------
x : `numpy.ndarray`
Current fit values to test. Float values in array are:
- ``bearingTo``: Direction to move the wcs coord in.
- ``separation``: Distance along sphere to move wcs coord in.
- ``affine0,0``: [0, 0] value of the 2x2 affine transform matrix.
- ``affine0,1``: [0, 1] value of the 2x2 affine transform matrix.
- ``affine1,0``: [1, 0] value of the 2x2 affine transform matrix.
- ``affine1,1``: [1, 1] value of the 2x2 affine transform matrix.
refPoints : `list` of `lsst.afw.geom.SpherePoint`
Reference object on Sky locations.
srcPixels : `list` of `lsst.geom.Point2D`
Source object positions on the pixels.
wcsMaker : `TransformedSkyWcsMaker`
Container class for producing the updated Wcs.
Returns
-------
outputSeparations : `list` of `float`
Separation between predicted source location and reference location in
radians.
Definition at line 40 of file fitAffineWcs.py.