d6b974770e3d65bd51e6c40fe40ba7d7c4ce10594fcbe6f3ab320473c6af8c3d.json 3.5 KB

1
  1. {"ast":null,"code":"/**\n * Creates a string representation of the Vector2\n * @param vector defines the Vector2 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector2 coordinates.\n */\nexport function Vector2ToFixed(vector, decimalCount) {\n return `{X: ${vector.x.toFixed(decimalCount)} Y: ${vector.y.toFixed(decimalCount)}}`;\n}\n/**\n * Creates a string representation of the Vector3\n * @param vector defines the Vector3 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector3 coordinates.\n */\nexport function Vector3ToFixed(vector, decimalCount) {\n return `{X: ${vector._x.toFixed(decimalCount)} Y: ${vector._y.toFixed(decimalCount)} Z: ${vector._z.toFixed(decimalCount)}}`;\n}\n/**\n * Creates a string representation of the Vector4\n * @param vector defines the Vector4 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector4 coordinates.\n */\nexport function Vector4ToFixed(vector, decimalCount) {\n return `{X: ${vector.x.toFixed(decimalCount)} Y: ${vector.y.toFixed(decimalCount)} Z: ${vector.z.toFixed(decimalCount)} W: ${vector.w.toFixed(decimalCount)}}`;\n}","map":{"version":3,"names":["Vector2ToFixed","vector","decimalCount","x","toFixed","y","Vector3ToFixed","_x","_y","_z","Vector4ToFixed","z","w"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Maths/math.vector.functions.js"],"sourcesContent":["/**\n * Creates a string representation of the Vector2\n * @param vector defines the Vector2 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector2 coordinates.\n */\nexport function Vector2ToFixed(vector, decimalCount) {\n return `{X: ${vector.x.toFixed(decimalCount)} Y: ${vector.y.toFixed(decimalCount)}}`;\n}\n/**\n * Creates a string representation of the Vector3\n * @param vector defines the Vector3 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector3 coordinates.\n */\nexport function Vector3ToFixed(vector, decimalCount) {\n return `{X: ${vector._x.toFixed(decimalCount)} Y: ${vector._y.toFixed(decimalCount)} Z: ${vector._z.toFixed(decimalCount)}}`;\n}\n/**\n * Creates a string representation of the Vector4\n * @param vector defines the Vector4 to stringify\n * @param decimalCount defines the number of decimals to use\n * @returns a string with the Vector4 coordinates.\n */\nexport function Vector4ToFixed(vector, decimalCount) {\n return `{X: ${vector.x.toFixed(decimalCount)} Y: ${vector.y.toFixed(decimalCount)} Z: ${vector.z.toFixed(decimalCount)} W: ${vector.w.toFixed(decimalCount)}}`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,cAAcA,CAACC,MAAM,EAAEC,YAAY,EAAE;EACjD,OAAO,OAAOD,MAAM,CAACE,CAAC,CAACC,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACI,CAAC,CAACD,OAAO,CAACF,YAAY,CAAC,GAAG;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,cAAcA,CAACL,MAAM,EAAEC,YAAY,EAAE;EACjD,OAAO,OAAOD,MAAM,CAACM,EAAE,CAACH,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACO,EAAE,CAACJ,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACQ,EAAE,CAACL,OAAO,CAACF,YAAY,CAAC,GAAG;AAChI;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASQ,cAAcA,CAACT,MAAM,EAAEC,YAAY,EAAE;EACjD,OAAO,OAAOD,MAAM,CAACE,CAAC,CAACC,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACI,CAAC,CAACD,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACU,CAAC,CAACP,OAAO,CAACF,YAAY,CAAC,OAAOD,MAAM,CAACW,CAAC,CAACR,OAAO,CAACF,YAAY,CAAC,GAAG;AAClK","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}