26ee2b03820abf885f0280ab985dc12db1a03f4f45cb01402bffbaa28656912b.json 2.6 KB

1
  1. {"ast":null,"code":"import * as functions from \"./math.scalar.functions.js\";\nconst HCF = functions.HighestCommonFactor;\n/**\n * Scalar computation library\n * @deprecated Please use the scalar functions\n */\n/* eslint-disable @typescript-eslint/naming-convention */\nexport const Scalar = {\n ...functions,\n /**\n * Two pi constants convenient for computation.\n */\n TwoPi: Math.PI * 2,\n /**\n * Returns -1 if value is negative and +1 is value is positive.\n * @param value the value\n * @returns the value itself if it's equal to zero.\n */\n Sign: Math.sign,\n /**\n * the log2 of value.\n * @param value the value to compute log2 of\n * @returns the log2 of value.\n */\n Log2: Math.log2,\n /**\n * Returns the highest common factor of two integers.\n * @param a first parameter\n * @param b second parameter\n * @returns HCF of a and b\n */\n HCF\n};\n/* eslint-enable @typescript-eslint/naming-convention */","map":{"version":3,"names":["functions","HCF","HighestCommonFactor","Scalar","TwoPi","Math","PI","Sign","sign","Log2","log2"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Maths/math.scalar.js"],"sourcesContent":["import * as functions from \"./math.scalar.functions.js\";\nconst HCF = functions.HighestCommonFactor;\n/**\n * Scalar computation library\n * @deprecated Please use the scalar functions\n */\n/* eslint-disable @typescript-eslint/naming-convention */\nexport const Scalar = {\n ...functions,\n /**\n * Two pi constants convenient for computation.\n */\n TwoPi: Math.PI * 2,\n /**\n * Returns -1 if value is negative and +1 is value is positive.\n * @param value the value\n * @returns the value itself if it's equal to zero.\n */\n Sign: Math.sign,\n /**\n * the log2 of value.\n * @param value the value to compute log2 of\n * @returns the log2 of value.\n */\n Log2: Math.log2,\n /**\n * Returns the highest common factor of two integers.\n * @param a first parameter\n * @param b second parameter\n * @returns HCF of a and b\n */\n HCF,\n};\n/* eslint-enable @typescript-eslint/naming-convention */\n"],"mappings":"AAAA,OAAO,KAAKA,SAAS,MAAM,4BAA4B;AACvD,MAAMC,GAAG,GAAGD,SAAS,CAACE,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAG;EAClB,GAAGH,SAAS;EACZ;AACJ;AACA;EACII,KAAK,EAAEC,IAAI,CAACC,EAAE,GAAG,CAAC;EAClB;AACJ;AACA;AACA;AACA;EACIC,IAAI,EAAEF,IAAI,CAACG,IAAI;EACf;AACJ;AACA;AACA;AACA;EACIC,IAAI,EAAEJ,IAAI,CAACK,IAAI;EACf;AACJ;AACA;AACA;AACA;AACA;EACIT;AACJ,CAAC;AACD","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}