#
vincentlu
2 天以前 6fb684ac358329206e9541a720ddc643b130fc46
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);
    }
}