Converted the angle of OrientedBoundingBox to degrees

This commit is contained in:
Yang Li
2009-05-28 18:00:50 -07:00
parent b0ded43d38
commit f3ede869b8

View File

@@ -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) {