|
|
|
@ -903,7 +903,7 @@ function getLocalPositionRelativeToP4(point, rectPoints, rectInfo) {
|
|
|
|
const y_local = dx * Math.sin(rad) + dy * Math.cos(rad);
|
|
|
|
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 {
|
|
|
|
return {
|
|
|
|
x: Number(x_local.toFixed(2)),
|
|
|
|
x: Number(x_local.toFixed(2)),
|
|
|
|
|