#
vincentlu
4 天以前 dcc2fc4faf3150480c83c1c818d6a945eb6ed007
zy-acs-manager/src/main/java/com/zy/acs/manager/core/domain/VehicleFootprint.java
@@ -1,5 +1,6 @@
package com.zy.acs.manager.core.domain;
import com.zy.acs.manager.common.utils.MapDataUtils;
import lombok.Data;
/**
@@ -19,8 +20,11 @@
    }
    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);
        double hypot = Math.hypot(Math.max(head, tail), halfWidth);
        return MapDataUtils.getVehicleWaveSafeDistance(hypot);
    }
}