#
vincentlu
2 天以前 7ce12b33107fb33941df7e1589bf1a6716539377
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;
/**
@@ -22,6 +23,8 @@
//        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);
        double hypot = Math.hypot(Math.max(head, tail), halfWidth);
        return MapDataUtils.getVehicleWaveSafeDistance(hypot);
    }
}