Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 607384d4 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 2678 into donut

* changes:
  Converted the angle of OrientedBoundingBox to degrees
parents f40f074c f3ede869
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -413,7 +413,7 @@ final class GestureUtilities {
            }
        }

        return new OrientedBoundingBox(angle, centroid[0], centroid[1], maxx - minx, maxy - miny);
        return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
    }

    private static double[] computeOrientation(double[][] covarianceMatrix) {