{
  "code": "import { MathHelper } from \"./MathHelper\";\r\nexport class Vector3Helper {\r\n    static get Zero() {\r\n        return new Laya.Vector3(0, 0, 0);\r\n    }\r\n    static get Up() {\r\n        return new Laya.Vector3(0, 1, 0);\r\n    }\r\n    static Add(a, b) {\r\n        return new Laya.Vector3(a.x + b.x, a.y + b.y, a.z + b.z);\r\n    }\r\n    static Substract(a, b) {\r\n        return new Laya.Vector3(a.x - b.x, a.y - b.y, a.z - b.z);\r\n    }\r\n    static Scale(a, b) {\r\n        let res = Vector3Helper.Zero;\r\n        Laya.Vector3.scale(a, b, res);\r\n        return res;\r\n    }\r\n    static Lerp(a, b, t) {\r\n        let res = Vector3Helper.Zero;\r\n        Laya.Vector3.lerp(a, b, t, res);\r\n        return res;\r\n    }\r\n    static ClampEuler(euler) {\r\n        return new Laya.Vector3(MathHelper.ClampEuler(euler.x), MathHelper.ClampEuler(euler.y), MathHelper.ClampEuler(euler.z));\r\n    }\r\n    static RotateY(a, deg) {\r\n        let matrix = new Laya.Matrix4x4();\r\n        Laya.Matrix4x4.createRotationY(deg * MathHelper.ToRad(), matrix);\r\n        let res = Vector3Helper.Zero;\r\n        Laya.Vector3.transformCoordinate(a, matrix, res);\r\n        return res;\r\n    }\r\n    static CancelBrackets(str) {\r\n        let a = str.split(\"(\");\r\n        let b = a[1];\r\n        let c = b.split(\")\");\r\n        let d = c[0];\r\n        let e = d.split(\",\");\r\n        return e;\r\n    }\r\n}\r\nexport class Transform3DHelper {\r\n    static getForward(transform) {\r\n        let forward = new Laya.Vector3();\r\n        transform.getForward(forward);\r\n        Laya.Vector3.scale(forward, -1, forward);\r\n        Laya.Vector3.normalize(forward, forward);\r\n        return forward;\r\n    }\r\n}\r\n//# sourceMappingURL=Vector3Helper.js.map",
  "references": [
    "E:/LayaProject/DanceLine/RubikCube/src/GameUtils/MathHelper.ts"
  ],
  "map": "{\"version\":3,\"file\":\"Vector3Helper.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/GameUtils/Vector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