diff --git a/src/views/index.vue b/src/views/index.vue index 164f2fd..af73d55 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -903,7 +903,7 @@ function getLocalPositionRelativeToP4(point, rectPoints, rectInfo) { const y_local = dx * Math.sin(rad) + dy * Math.cos(rad); // 点自身相对旋转角(相对于矩形底边方向) - const rotate_local = ((point.rotate ?? 0) - rectInfo.angle + 360) % 360; + const rotate_local = ((point.rotate ?? 0) + rectInfo.angle + 360) % 360; return { x: Number(x_local.toFixed(2)),