| | |
| | | package com.zy.acs.manager.core.domain; |
| | | |
| | | import com.zy.acs.manager.common.utils.MapDataUtils; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | 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); |
| | | } |
| | | } |