{"ast":null,"code":"import { NodeGeometryBlock } from \"../../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../../Enums/nodeGeometryConnectionPointTypes.js\";\nimport { Matrix } from \"../../../../Maths/math.vector.js\";\n/**\n * Block used to get a rotation matrix on Z Axis\n */\nexport class RotationZBlock extends NodeGeometryBlock {\n /**\n * Create a new RotationZBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerInput(\"angle\", NodeGeometryBlockConnectionPointTypes.Float, true, 0);\n this.registerOutput(\"matrix\", NodeGeometryBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"RotationZBlock\";\n }\n /**\n * Gets the angle input component\n */\n get angle() {\n return this._inputs[0];\n }\n /**\n * Gets the matrix output component\n */\n get matrix() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n this.matrix._storedFunction = state => {\n return Matrix.RotationZ(this.angle.getConnectedValue(state));\n };\n }\n}\nRegisterClass(\"BABYLON.RotationZBlock\", RotationZBlock);","map":{"version":3,"names":["NodeGeometryBlock","RegisterClass","NodeGeometryBlockConnectionPointTypes","Matrix","RotationZBlock","constructor","name","registerInput","Float","registerOutput","getClassName","angle","_inputs","matrix","_outputs","_buildBlock","state","_storedFunction","RotationZ","getConnectedValue"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Meshes/Node/Blocks/Matrices/rotationZBlock.js"],"sourcesContent":["import { NodeGeometryBlock } from \"../../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../../Enums/nodeGeometryConnectionPointTypes.js\";\nimport { Matrix } from \"../../../../Maths/math.vector.js\";\n/**\n * Block used to get a rotation matrix on Z Axis\n */\nexport class RotationZBlock extends NodeGeometryBlock {\n /**\n * Create a new RotationZBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerInput(\"angle\", NodeGeometryBlockConnectionPointTypes.Float, true, 0);\n this.registerOutput(\"matrix\", NodeGeometryBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"RotationZBlock\";\n }\n /**\n * Gets the angle input component\n */\n get angle() {\n return this._inputs[0];\n }\n /**\n * Gets the matrix output component\n */\n get matrix() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n this.matrix._storedFunction = (state) => {\n return Matrix.RotationZ(this.angle.getConnectedValue(state));\n };\n }\n}\nRegisterClass(\"BABYLON.RotationZBlock\", RotationZBlock);\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,4BAA4B;AAC9D,SAASC,aAAa,QAAQ,+BAA+B;AAC7D,SAASC,qCAAqC,QAAQ,iDAAiD;AACvG,SAASC,MAAM,QAAQ,kCAAkC;AACzD;AACA;AACA;AACA,OAAO,MAAMC,cAAc,SAASJ,iBAAiB,CAAC;EAClD;AACJ;AACA;AACA;EACIK,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,CAAC;IACX,IAAI,CAACC,aAAa,CAAC,OAAO,EAAEL,qCAAqC,CAACM,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACjF,IAAI,CAACC,cAAc,CAAC,QAAQ,EAAEP,qCAAqC,CAACC,MAAM,CAAC;EAC/E;EACA;AACJ;AACA;AACA;EACIO,YAAYA,CAAA,EAAG;IACX,OAAO,gBAAgB;EAC3B;EACA;AACJ;AACA;EACI,IAAIC,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAC1B;EACA;AACJ;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;EAC3B;EACAC,WAAWA,CAACC,KAAK,EAAE;IACf,KAAK,CAACD,WAAW,CAACC,KAAK,CAAC;IACxB,IAAI,CAACH,MAAM,CAACI,eAAe,GAAID,KAAK,IAAK;MACrC,OAAOb,MAAM,CAACe,SAAS,CAAC,IAAI,CAACP,KAAK,CAACQ,iBAAiB,CAACH,KAAK,CAAC,CAAC;IAChE,CAAC;EACL;AACJ;AACAf,aAAa,CAAC,wBAAwB,EAAEG,cAAc,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}