{"ast":null,"code":"import { Vector3, Vector2 } from \"./math.vector.js\";\n/**\n * Contains position and normal vectors for a vertex\n */\nexport class PositionNormalVertex {\n /**\n * Creates a PositionNormalVertex\n * @param position the position of the vertex (defaut: 0,0,0)\n * @param normal the normal of the vertex (defaut: 0,1,0)\n */\n constructor( /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\n position = Vector3.Zero(), /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\n normal = Vector3.Up()) {\n this.position = position;\n this.normal = normal;\n }\n /**\n * Clones the PositionNormalVertex\n * @returns the cloned PositionNormalVertex\n */\n clone() {\n return new PositionNormalVertex(this.position.clone(), this.normal.clone());\n }\n}\n/**\n * Contains position, normal and uv vectors for a vertex\n */\nexport class PositionNormalTextureVertex {\n /**\n * Creates a PositionNormalTextureVertex\n * @param position the position of the vertex (defaut: 0,0,0)\n * @param normal the normal of the vertex (defaut: 0,1,0)\n * @param uv the uv of the vertex (default: 0,0)\n */\n constructor( /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\n position = Vector3.Zero(), /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\n normal = Vector3.Up(), /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */\n uv = Vector2.Zero()) {\n this.position = position;\n this.normal = normal;\n this.uv = uv;\n }\n /**\n * Clones the PositionNormalTextureVertex\n * @returns the cloned PositionNormalTextureVertex\n */\n clone() {\n return new PositionNormalTextureVertex(this.position.clone(), this.normal.clone(), this.uv.clone());\n }\n}","map":{"version":3,"names":["Vector3","Vector2","PositionNormalVertex","constructor","position","Zero","normal","Up","clone","PositionNormalTextureVertex","uv"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Maths/math.vertexFormat.js"],"sourcesContent":["import { Vector3, Vector2 } from \"./math.vector.js\";\n/**\n * Contains position and normal vectors for a vertex\n */\nexport class PositionNormalVertex {\n /**\n * Creates a PositionNormalVertex\n * @param position the position of the vertex (defaut: 0,0,0)\n * @param normal the normal of the vertex (defaut: 0,1,0)\n */\n constructor(\n /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\n position = Vector3.Zero(), \n /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\n normal = Vector3.Up()) {\n this.position = position;\n this.normal = normal;\n }\n /**\n * Clones the PositionNormalVertex\n * @returns the cloned PositionNormalVertex\n */\n clone() {\n return new PositionNormalVertex(this.position.clone(), this.normal.clone());\n }\n}\n/**\n * Contains position, normal and uv vectors for a vertex\n */\nexport class PositionNormalTextureVertex {\n /**\n * Creates a PositionNormalTextureVertex\n * @param position the position of the vertex (defaut: 0,0,0)\n * @param normal the normal of the vertex (defaut: 0,1,0)\n * @param uv the uv of the vertex (default: 0,0)\n */\n constructor(\n /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\n position = Vector3.Zero(), \n /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\n normal = Vector3.Up(), \n /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */\n uv = Vector2.Zero()) {\n this.position = position;\n this.normal = normal;\n this.uv = uv;\n }\n /**\n * Clones the PositionNormalTextureVertex\n * @returns the cloned PositionNormalTextureVertex\n */\n clone() {\n return new PositionNormalTextureVertex(this.position.clone(), this.normal.clone(), this.uv.clone());\n }\n}\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,OAAO,QAAQ,kBAAkB;AACnD;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,CAAC;EAC9B;AACJ;AACA;AACA;AACA;EACIC,WAAWA,CAAA,CACX;EACAC,QAAQ,GAAGJ,OAAO,CAACK,IAAI,CAAC,CAAC,EACzB;EACAC,MAAM,GAAGN,OAAO,CAACO,EAAE,CAAC,CAAC,EAAE;IACnB,IAAI,CAACH,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACE,MAAM,GAAGA,MAAM;EACxB;EACA;AACJ;AACA;AACA;EACIE,KAAKA,CAAA,EAAG;IACJ,OAAO,IAAIN,oBAAoB,CAAC,IAAI,CAACE,QAAQ,CAACI,KAAK,CAAC,CAAC,EAAE,IAAI,CAACF,MAAM,CAACE,KAAK,CAAC,CAAC,CAAC;EAC/E;AACJ;AACA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,CAAC;EACrC;AACJ;AACA;AACA;AACA;AACA;EACIN,WAAWA,CAAA,CACX;EACAC,QAAQ,GAAGJ,OAAO,CAACK,IAAI,CAAC,CAAC,EACzB;EACAC,MAAM,GAAGN,OAAO,CAACO,EAAE,CAAC,CAAC,EACrB;EACAG,EAAE,GAAGT,OAAO,CAACI,IAAI,CAAC,CAAC,EAAE;IACjB,IAAI,CAACD,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACE,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACI,EAAE,GAAGA,EAAE;EAChB;EACA;AACJ;AACA;AACA;EACIF,KAAKA,CAAA,EAAG;IACJ,OAAO,IAAIC,2BAA2B,CAAC,IAAI,CAACL,QAAQ,CAACI,KAAK,CAAC,CAAC,EAAE,IAAI,CAACF,MAAM,CAACE,KAAK,CAAC,CAAC,EAAE,IAAI,CAACE,EAAE,CAACF,KAAK,CAAC,CAAC,CAAC;EACvG;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}