#
luxiaotao1123
2024-10-12 28647ecb12f0dc6558c0c299d99e9a450d97fa22
zy-acs-flow/src/map/tool.js
@@ -324,6 +324,20 @@
    effectHalfCircle.position.set(sprite.x, sprite.y);
}
export const rotationToNum = (rotation) => {
    let res = rotation * 180 / Math.PI;
    if (res < 0) {
        res += 360;
    } else if (res > 360) {
        res -= 360;
    }
    return res;
}
export const rotationParseNum = (num) => {
    return num * Math.PI / 180;
}
export const incrementSpriteNo = (str, incrementValue) => {
    const match = str.match(/(\D*)(\d+)/);
    if (match) {