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

Commit f3ede869 authored by Yang Li's avatar Yang Li
Browse files

Converted the angle of OrientedBoundingBox to degrees

parent b0ded43d
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) {