How does one use the angle returned from mathutils.geometry.box_fit_2d?
For example, in the image above the face is selected & the following is run in the console. (There is no transform on mesh object, so vert coordinates are global coords)
>>> bm = bmesh.from_edit_mesh(C.object.data)
>>> points = [v.co.xy for v in bm.verts if v.select]
>>> points
[Vector((39.5, 125.0)), Vector((40.25, 107.0)), Vector((107.0, 163.0)), Vector((80.5, 159.5))]
>>> a = box_fit_2d(points)
>>> degrees(a)
50.00498629110601
The plane (the square) is rotated 50.005 degrees.
I've found a couple of example usages generally for UVs http://www.programcreek.com/python/example/56195/mathutils.Vector.