#
vincentlu
5 天以前 60fda68af793008947c9b26950421a40363a73a2
zy-acs-manager/src/main/java/com/zy/acs/manager/core/domain/VehicleFootprint.java
@@ -19,8 +19,9 @@
    }
    public double maxExtent() {
        double frontDiag = Math.hypot(head, halfWidth);
        double rearDiag = Math.hypot(tail, halfWidth);
        return Math.max(frontDiag, rearDiag);
//        double frontDiag = Math.hypot(head, halfWidth);
//        double rearDiag = Math.hypot(tail, halfWidth);
//        return Math.max(frontDiag, rearDiag);
        return Math.hypot(Math.max(head, tail), halfWidth);
    }
}