x_ite 4.2.17 → 4.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.vscode/launch.json +15 -0
- package/.vscode/settings.json +12 -0
- package/.vscode/tasks.json +25 -0
- package/Makefile +27 -10
- package/README.md +13 -145
- package/build/bin/dist.pl +65 -8
- package/build/bin/version-number.pl +25 -0
- package/build/bin/version.pl +54 -14
- package/build/components/annotation.build.js +15 -0
- package/build/components/cad-geometry.build.js +15 -0
- package/build/components/cube-map-texturing.build.js +15 -0
- package/build/components/dis.build.js +15 -0
- package/build/components/event-utilities.build.js +15 -0
- package/build/components/geometry2d.build.js +15 -0
- package/build/components/geospatial.build.js +15 -0
- package/build/components/h-anim.build.js +15 -0
- package/build/components/key-device-sensor.build.js +15 -0
- package/build/components/layout.build.js +15 -0
- package/build/components/nurbs.build.js +15 -0
- package/build/components/particle-systems.build.js +15 -0
- package/build/components/picking.build.js +15 -0
- package/build/components/projective-texture-mapping.build.js +15 -0
- package/build/components/rigid-body-physics.build.js +15 -0
- package/build/components/scripting.build.js +15 -0
- package/build/components/texturing-3d.build.js +15 -0
- package/build/components/volume-rendering.build.js +15 -0
- package/build/components/x_ite.build.js +15 -0
- package/build/parts/default.end.frag.js +3 -0
- package/build/parts/default.start.frag.js +15 -0
- package/build/parts/x_ite.end.frag.js +25 -0
- package/build/parts/x_ite.start.frag.js +16 -0
- package/build/x_ite.build.js +5 -2
- package/dist/{components/texturing-3d.js → assets/components/annotation.js} +341 -263
- package/dist/assets/components/annotation.min.js +1 -0
- package/dist/{components → assets/components}/cad-geometry.js +180 -76
- package/dist/assets/components/cad-geometry.min.js +1 -0
- package/dist/assets/components/cube-map-texturing.js +1222 -0
- package/dist/assets/components/cube-map-texturing.min.js +1 -0
- package/dist/assets/components/dis.js +918 -0
- package/dist/assets/components/dis.min.js +1 -0
- package/dist/assets/components/event-utilities.js +1124 -0
- package/dist/assets/components/event-utilities.min.js +1 -0
- package/dist/assets/components/geometry2d.js +2200 -0
- package/dist/assets/components/geometry2d.min.js +1 -0
- package/dist/{components → assets/components}/geospatial.js +364 -269
- package/dist/assets/components/geospatial.min.js +2 -0
- package/dist/{components → assets/components}/h-anim.js +224 -62
- package/dist/assets/components/h-anim.min.js +1 -0
- package/dist/assets/components/key-device-sensor.js +860 -0
- package/dist/assets/components/key-device-sensor.min.js +1 -0
- package/dist/assets/components/layout.js +2018 -0
- package/dist/assets/components/layout.min.js +1 -0
- package/dist/{components → assets/components}/nurbs.js +632 -348
- package/dist/assets/components/nurbs.min.js +2 -0
- package/dist/{components → assets/components}/particle-systems.js +514 -476
- package/dist/assets/components/particle-systems.min.js +2 -0
- package/dist/assets/components/picking.js +2491 -0
- package/dist/assets/components/picking.min.js +1 -0
- package/dist/assets/components/projective-texture-mapping.js +823 -0
- package/dist/assets/components/projective-texture-mapping.min.js +1 -0
- package/dist/assets/components/rigid-body-physics.js +4579 -0
- package/dist/assets/components/rigid-body-physics.min.js +59 -0
- package/dist/assets/components/scripting.js +816 -0
- package/dist/assets/components/scripting.min.js +1 -0
- package/dist/assets/components/texturing-3d.js +10064 -0
- package/dist/assets/components/texturing-3d.min.js +48 -0
- package/dist/assets/components/volume-rendering.js +3976 -0
- package/dist/assets/components/volume-rendering.min.js +3 -0
- package/dist/assets/components/x_ite.js +295 -0
- package/dist/assets/components/x_ite.min.js +1 -0
- package/{fonts → dist/assets/fonts}/DroidSerif-Bold.ttf +0 -0
- package/{fonts → dist/assets/fonts}/DroidSerif-BoldItalic.ttf +0 -0
- package/{fonts → dist/assets/fonts}/DroidSerif-Italic.ttf +0 -0
- package/{fonts → dist/assets/fonts}/DroidSerif-Regular.ttf +0 -0
- package/{fonts → dist/assets/fonts}/Ubuntu-B.ttf +0 -0
- package/{fonts → dist/assets/fonts}/Ubuntu-BI.ttf +0 -0
- package/{fonts → dist/assets/fonts}/Ubuntu-R.ttf +0 -0
- package/{fonts → dist/assets/fonts}/Ubuntu-RI.ttf +0 -0
- package/{fonts → dist/assets/fonts}/UbuntuMono-B.ttf +0 -0
- package/{fonts → dist/assets/fonts}/UbuntuMono-BI.ttf +0 -0
- package/{fonts → dist/assets/fonts}/UbuntuMono-R.ttf +0 -0
- package/{fonts → dist/assets/fonts}/UbuntuMono-RI.ttf +0 -0
- package/dist/assets/hatching/0.png +0 -0
- package/dist/assets/hatching/1.png +0 -0
- package/dist/assets/hatching/10.png +0 -0
- package/dist/assets/hatching/11.png +0 -0
- package/dist/assets/hatching/12.png +0 -0
- package/dist/assets/hatching/13.png +0 -0
- package/dist/assets/hatching/14.png +0 -0
- package/dist/assets/hatching/15.png +0 -0
- package/dist/assets/hatching/16.png +0 -0
- package/dist/assets/hatching/17.png +0 -0
- package/dist/assets/hatching/18.png +0 -0
- package/dist/assets/hatching/19.png +0 -0
- package/dist/assets/hatching/2.png +0 -0
- package/dist/assets/hatching/3.png +0 -0
- package/dist/assets/hatching/4.png +0 -0
- package/dist/assets/hatching/5.png +0 -0
- package/dist/assets/hatching/6.png +0 -0
- package/dist/assets/hatching/7.png +0 -0
- package/dist/assets/hatching/8.png +0 -0
- package/dist/assets/hatching/9.png +0 -0
- package/dist/{images → assets/images}/ExamineViewer.png +0 -0
- package/dist/{images → assets/images}/FlyViewer.png +0 -0
- package/dist/{images → assets/images}/NoneViewer.png +0 -0
- package/dist/{images → assets/images}/PlaneViewer.png +0 -0
- package/dist/{images → assets/images}/PrimitiveQuality.png +0 -0
- package/dist/{images → assets/images}/TextureQuality.png +0 -0
- package/dist/{images → assets/images}/Time.png +0 -0
- package/dist/{images → assets/images}/Viewpoint.png +0 -0
- package/dist/{images → assets/images}/WalkViewer.png +0 -0
- package/dist/assets/images/go-next.png +0 -0
- package/dist/{images → assets/images}/gtk-fullscreen.png +0 -0
- package/dist/{images → assets/images}/gtk-leave-fullscreen.png +0 -0
- package/dist/{images → assets/images}/gtk-zoom-fit.png +0 -0
- package/dist/{images → assets/images}/gtk-zoom-in.png +0 -0
- package/dist/{images → assets/images}/help-about.png +0 -0
- package/dist/{images → assets/images}/icon.bw.png +0 -0
- package/dist/{images → assets/images}/icon.png +0 -0
- package/dist/assets/images/logo.128.png +0 -0
- package/dist/{images → assets/images}/logo.bw.png +0 -0
- package/dist/{images → assets/images}/logo.png +0 -0
- package/dist/assets/linetype/0.png +0 -0
- package/dist/assets/linetype/1.png +0 -0
- package/dist/assets/linetype/10.png +0 -0
- package/dist/assets/linetype/11.png +0 -0
- package/dist/assets/linetype/12.png +0 -0
- package/dist/assets/linetype/13.png +0 -0
- package/dist/assets/linetype/14.png +0 -0
- package/dist/assets/linetype/15.png +0 -0
- package/dist/assets/linetype/16.png +0 -0
- package/dist/assets/linetype/2.png +0 -0
- package/dist/assets/linetype/3.png +0 -0
- package/dist/assets/linetype/4.png +0 -0
- package/dist/assets/linetype/5.png +0 -0
- package/dist/assets/linetype/6.png +0 -0
- package/dist/assets/linetype/7.png +0 -0
- package/dist/assets/linetype/8.png +0 -0
- package/dist/assets/linetype/9.png +0 -0
- package/dist/assets/shaders/webgl1/Background.fs +23 -0
- package/dist/assets/shaders/webgl1/Background.vs +16 -0
- package/dist/assets/shaders/webgl1/Depth.fs +60 -0
- package/dist/assets/shaders/webgl1/Depth.vs +13 -0
- package/dist/assets/shaders/webgl1/Fallback.fs +28 -0
- package/dist/assets/shaders/webgl1/Fallback.vs +24 -0
- package/dist/assets/shaders/webgl1/FallbackUnlit.fs +15 -0
- package/dist/assets/shaders/webgl1/FallbackUnlit.vs +18 -0
- package/dist/assets/shaders/webgl1/Gouraud.fs +529 -0
- package/dist/assets/shaders/webgl1/Gouraud.vs +107 -0
- package/dist/assets/shaders/webgl1/Phong.fs +837 -0
- package/dist/assets/shaders/webgl1/Phong.vs +52 -0
- package/dist/assets/shaders/webgl1/PointSet.fs +541 -0
- package/dist/assets/shaders/webgl1/PointSet.vs +48 -0
- package/dist/assets/shaders/webgl1/Unlit.fs +538 -0
- package/dist/assets/shaders/webgl1/Unlit.vs +52 -0
- package/dist/assets/shaders/webgl1/Wireframe.fs +93 -0
- package/dist/assets/shaders/webgl1/Wireframe.vs +47 -0
- package/dist/assets/shaders/webgl2/Background.fs +25 -0
- package/dist/assets/shaders/webgl2/Background.vs +17 -0
- package/dist/assets/shaders/webgl2/Depth.fs +62 -0
- package/dist/assets/shaders/webgl2/Depth.vs +14 -0
- package/dist/assets/shaders/webgl2/Gouraud.fs +684 -0
- package/dist/assets/shaders/webgl2/Gouraud.vs +108 -0
- package/dist/assets/shaders/webgl2/Phong.fs +1013 -0
- package/dist/assets/shaders/webgl2/Phong.vs +53 -0
- package/dist/assets/shaders/webgl2/PointSet.fs +696 -0
- package/dist/assets/shaders/webgl2/PointSet.vs +49 -0
- package/dist/assets/shaders/webgl2/Unlit.fs +693 -0
- package/dist/assets/shaders/webgl2/Unlit.vs +53 -0
- package/dist/assets/shaders/webgl2/Wireframe.fs +102 -0
- package/dist/assets/shaders/webgl2/Wireframe.vs +48 -0
- package/dist/example.html +8 -7
- package/dist/x_ite.css +167 -49
- package/dist/x_ite.js +66263 -60020
- package/dist/x_ite.min.js +41 -41
- package/dist/x_ite.zip +0 -0
- package/docs/404.md +5 -0
- package/docs/Accessing-the-External-Browser.md +319 -0
- package/docs/Browser-Support.md +47 -0
- package/docs/Custom-Shaders.md +896 -0
- package/docs/Features.md +49 -0
- package/docs/Glossary.md +339 -0
- package/docs/How-To-Configure-Your-Web-Server.md +56 -0
- package/docs/Supported-Nodes.md +370 -0
- package/docs/What's-New.md +1295 -0
- package/docs/XHTML-DOM-Integration.md +82 -0
- package/docs/_config.yml +140 -0
- package/docs/_data/navigation.yml +137 -0
- package/docs/assets/css/main.scss +100 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/google3696ee938394d7b6.html +1 -0
- package/docs/index.md +1033 -0
- package/docs/reference/Browser-Services.md +361 -0
- package/docs/reference/Constants-Services.md +376 -0
- package/docs/reference/ECMAScript-Object-and-Function-Definitions.md +128 -0
- package/docs/reference/Field-Services-and-Objects.md +1006 -0
- package/docs/reference/Prototype-Services.md +121 -0
- package/docs/reference/Route-Services.md +49 -0
- package/docs/reference/Scene-Services.md +360 -0
- package/docs/reference/Script-Node-Authoring-Interface.md +342 -0
- package/docs/tutorials/Adding-backgrounds.md +268 -0
- package/docs/tutorials/Adding-fog.md +67 -0
- package/docs/tutorials/Adding-sound.md +326 -0
- package/docs/tutorials/Animating-transforms.md +385 -0
- package/docs/tutorials/Basic-Nodes.md +317 -0
- package/docs/tutorials/Building-a-X3D-world.md +152 -0
- package/docs/tutorials/Building-elevation-grids.md +170 -0
- package/docs/tutorials/Building-extruded-shapes.md +145 -0
- package/docs/tutorials/Building-primitive-shapes.md +204 -0
- package/docs/tutorials/Building-shapes-out-of-points,-lines,-and-faces.md +311 -0
- package/docs/tutorials/Controlling-appearance-with-materials.md +186 -0
- package/docs/tutorials/Controlling-color-on-coordinate-based-geometry.md +208 -0
- package/docs/tutorials/Controlling-detail.md +130 -0
- package/docs/tutorials/Controlling-how-textures-are-mapped.md +277 -0
- package/docs/tutorials/Controlling-navigation.md +70 -0
- package/docs/tutorials/Controlling-shading-on-coordinate-based-geometry.md +180 -0
- package/docs/tutorials/Controlling-the-viewpoint.md +49 -0
- package/docs/tutorials/Creating-new-node-types.md +313 -0
- package/docs/tutorials/Grouping-nodes.md +237 -0
- package/docs/tutorials/Hello,-World!.md +204 -0
- package/docs/tutorials/Improving-Performance.md +227 -0
- package/docs/tutorials/Increasing-Rendering-Speed.md +110 -0
- package/docs/tutorials/Introducing-X3D.md +94 -0
- package/docs/tutorials/Introducing-animation.md +211 -0
- package/docs/tutorials/Introducing-script-use.md +127 -0
- package/docs/tutorials/Lighting-your-world.md +139 -0
- package/docs/tutorials/Mapping-textures.md +212 -0
- package/docs/tutorials/Naming-nodes.md +161 -0
- package/docs/tutorials/Providing-information-about-your-world.md +30 -0
- package/docs/tutorials/Sensing-the-viewer.md +205 -0
- package/docs/tutorials/Sensing-viewer-actions.md +214 -0
- package/docs/tutorials/Transforming-Shapes.md +270 -0
- package/docs/tutorials/Writing-program-scripts-with-ECMAScript.md +631 -0
- package/docs/tutorials/index.md +78 -0
- package/meta/logo/logo.png +0 -0
- package/meta/logo/logo.svg +216 -217
- package/meta/web3d.html +3 -3
- package/package.json +43 -28
- package/src/assets/components/annotation.js +87 -0
- package/src/{components → assets/components}/cad-geometry.js +0 -0
- package/src/{x_ite/Components/CubeMapTexturing.js → assets/components/cube-map-texturing.js} +15 -21
- package/src/assets/components/dis.js +84 -0
- package/src/{x_ite/Components/EventUtilities.js → assets/components/event-utilities.js} +20 -26
- package/src/{x_ite/Components/Geometry2D.js → assets/components/geometry2d.js} +22 -25
- package/src/{components → assets/components}/geospatial.js +0 -0
- package/src/{components → assets/components}/h-anim.js +9 -7
- package/src/{x_ite/Components/KeyDeviceSensor.js → assets/components/key-device-sensor.js} +17 -20
- package/src/{x_ite/Components/Layout.js → assets/components/layout.js} +20 -23
- package/src/{components → assets/components}/nurbs.js +0 -0
- package/src/{components → assets/components}/particle-systems.js +1 -1
- package/src/assets/components/picking.js +87 -0
- package/src/assets/components/projective-texture-mapping.js +75 -0
- package/src/{components → assets/components}/rigid-body-physics.js +7 -2
- package/src/{x_ite/Components/Scripting.js → assets/components/scripting.js} +13 -19
- package/src/{components → assets/components}/texturing-3d.js +12 -13
- package/src/assets/components/volume-rendering.js +118 -0
- package/src/{x_ite/Components/X_ITE.js → assets/components/x_ite.js} +12 -30
- package/src/assets/fonts/DroidSerif-Bold.ttf +0 -0
- package/src/assets/fonts/DroidSerif-BoldItalic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Italic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Regular.ttf +0 -0
- package/src/assets/fonts/Ubuntu-B.ttf +0 -0
- package/src/assets/fonts/Ubuntu-BI.ttf +0 -0
- package/src/assets/fonts/Ubuntu-R.ttf +0 -0
- package/src/assets/fonts/Ubuntu-RI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-B.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-BI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-R.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-RI.ttf +0 -0
- package/src/assets/hatching/0.png +0 -0
- package/src/assets/hatching/1.png +0 -0
- package/src/assets/hatching/10.png +0 -0
- package/src/assets/hatching/11.png +0 -0
- package/src/assets/hatching/12.png +0 -0
- package/src/assets/hatching/13.png +0 -0
- package/src/assets/hatching/14.png +0 -0
- package/src/assets/hatching/15.png +0 -0
- package/src/assets/hatching/16.png +0 -0
- package/src/assets/hatching/17.png +0 -0
- package/src/assets/hatching/18.png +0 -0
- package/src/assets/hatching/19.png +0 -0
- package/src/assets/hatching/2.png +0 -0
- package/src/assets/hatching/3.png +0 -0
- package/src/assets/hatching/4.png +0 -0
- package/src/assets/hatching/5.png +0 -0
- package/src/assets/hatching/6.png +0 -0
- package/src/assets/hatching/7.png +0 -0
- package/src/assets/hatching/8.png +0 -0
- package/src/assets/hatching/9.png +0 -0
- package/src/{images → assets/images}/ExamineViewer.png +0 -0
- package/src/{images → assets/images}/FlyViewer.png +0 -0
- package/src/{images → assets/images}/NoneViewer.png +0 -0
- package/src/{images → assets/images}/PlaneViewer.png +0 -0
- package/src/{images → assets/images}/PrimitiveQuality.png +0 -0
- package/src/{images → assets/images}/TextureQuality.png +0 -0
- package/src/{images → assets/images}/Time.png +0 -0
- package/src/{images → assets/images}/Viewpoint.png +0 -0
- package/src/{images → assets/images}/WalkViewer.png +0 -0
- package/src/assets/images/go-next.png +0 -0
- package/src/{images → assets/images}/gtk-fullscreen.png +0 -0
- package/src/{images → assets/images}/gtk-leave-fullscreen.png +0 -0
- package/src/{images → assets/images}/gtk-zoom-fit.png +0 -0
- package/src/{images → assets/images}/gtk-zoom-in.png +0 -0
- package/src/{images → assets/images}/help-about.png +0 -0
- package/src/{images → assets/images}/icon.bw.png +0 -0
- package/src/{images → assets/images}/icon.png +0 -0
- package/src/assets/images/logo.128.png +0 -0
- package/src/{images → assets/images}/logo.bw.png +0 -0
- package/src/{images → assets/images}/logo.png +0 -0
- package/src/assets/linetype/0.png +0 -0
- package/src/assets/linetype/1.png +0 -0
- package/src/assets/linetype/10.png +0 -0
- package/src/assets/linetype/11.png +0 -0
- package/src/assets/linetype/12.png +0 -0
- package/src/assets/linetype/13.png +0 -0
- package/src/assets/linetype/14.png +0 -0
- package/src/assets/linetype/15.png +0 -0
- package/src/assets/linetype/16.png +0 -0
- package/src/assets/linetype/2.png +0 -0
- package/src/assets/linetype/3.png +0 -0
- package/src/assets/linetype/4.png +0 -0
- package/src/assets/linetype/5.png +0 -0
- package/src/assets/linetype/6.png +0 -0
- package/src/assets/linetype/7.png +0 -0
- package/src/assets/linetype/8.png +0 -0
- package/src/assets/linetype/9.png +0 -0
- package/src/assets/shaders/Types.glsl +102 -0
- package/src/assets/shaders/webgl1/Background.fs +16 -0
- package/src/assets/shaders/webgl1/Background.vs +22 -0
- package/src/assets/shaders/webgl1/Depth.fs +16 -0
- package/src/assets/shaders/webgl1/Depth.vs +20 -0
- package/src/assets/shaders/webgl1/Fallback.fs +38 -0
- package/src/assets/shaders/webgl1/Fallback.vs +30 -0
- package/src/assets/shaders/webgl1/FallbackUnlit.fs +21 -0
- package/src/assets/shaders/webgl1/FallbackUnlit.vs +24 -0
- package/src/assets/shaders/webgl1/Gouraud.fs +66 -0
- package/src/assets/shaders/webgl1/Gouraud.vs +147 -0
- package/src/assets/shaders/webgl1/Phong.fs +172 -0
- package/src/assets/shaders/webgl1/Phong.vs +67 -0
- package/src/assets/shaders/webgl1/PointSet.fs +100 -0
- package/src/assets/shaders/webgl1/PointSet.vs +70 -0
- package/src/assets/shaders/webgl1/Unlit.fs +86 -0
- package/src/assets/shaders/webgl1/Unlit.vs +67 -0
- package/src/assets/shaders/webgl1/Wireframe.fs +74 -0
- package/src/assets/shaders/webgl1/Wireframe.vs +63 -0
- package/src/assets/shaders/webgl1/include/ClipPlanes.glsl +16 -0
- package/src/assets/shaders/webgl1/include/Fog.glsl +38 -0
- package/src/assets/shaders/webgl1/include/Hatch.glsl +18 -0
- package/src/{x_ite/Browser/Shaders/Include/Pack.h → assets/shaders/webgl1/include/Pack.glsl} +0 -1
- package/src/assets/shaders/webgl1/include/Perlin.glsl +40 -0
- package/src/{x_ite/Browser/Shaders/Include/Shadow.h → assets/shaders/webgl1/include/Shadow.glsl} +33 -33
- package/src/assets/shaders/webgl1/include/Texture.glsl +488 -0
- package/src/assets/shaders/webgl2/Background.fs +19 -0
- package/src/assets/shaders/webgl2/Background.vs +23 -0
- package/src/assets/shaders/webgl2/Depth.fs +19 -0
- package/src/assets/shaders/webgl2/Depth.vs +21 -0
- package/src/assets/shaders/webgl2/Gouraud.fs +64 -0
- package/src/assets/shaders/webgl2/Gouraud.vs +148 -0
- package/src/assets/shaders/webgl2/Phong.fs +170 -0
- package/src/assets/shaders/webgl2/Phong.vs +68 -0
- package/src/assets/shaders/webgl2/PointSet.fs +99 -0
- package/src/assets/shaders/webgl2/PointSet.vs +71 -0
- package/src/assets/shaders/webgl2/Unlit.fs +85 -0
- package/src/assets/shaders/webgl2/Unlit.vs +68 -0
- package/src/assets/shaders/webgl2/Wireframe.fs +73 -0
- package/src/assets/shaders/webgl2/Wireframe.vs +64 -0
- package/src/assets/shaders/webgl2/include/ClipPlanes.glsl +16 -0
- package/src/assets/shaders/webgl2/include/Fog.glsl +46 -0
- package/src/assets/shaders/webgl2/include/Hatch.glsl +18 -0
- package/src/assets/shaders/webgl2/include/Pack.glsl +51 -0
- package/src/assets/shaders/webgl2/include/Perlin.glsl +40 -0
- package/src/assets/shaders/webgl2/include/Shadow.glsl +324 -0
- package/src/assets/shaders/webgl2/include/Texture.glsl +623 -0
- package/src/bookmarks.js +33 -12
- package/src/dummy.js +1 -0
- package/src/example.html +8 -7
- package/src/examples.js +21 -3
- package/src/lib/ammojs/AmmoJS.js +58 -0
- package/src/lib/ammojs/Makefile +4 -0
- package/src/lib/ammojs/ammo.idl +72 -1
- package/src/lib/ammojs/ammo.js +25 -21
- package/src/lib/jpeg/jpeg.js +1019 -0
- package/src/lib/nurbs/extras/sample.js +137 -80
- package/src/locale/de.po +18 -73
- package/src/locale/fr.po +18 -74
- package/src/spinner.css +18 -6
- package/src/standard/Geospatial/Geodetic.js +43 -43
- package/src/standard/Geospatial/ReferenceEllipsoids.js +1 -1
- package/src/standard/Geospatial/UniversalTransverseMercator.js +42 -42
- package/src/standard/Math/Algorithm.js +22 -39
- package/src/standard/Math/Algorithms/Bezier.js +147 -0
- package/src/standard/Math/Algorithms/MergeSort.js +2 -2
- package/src/standard/Math/Algorithms/PartialSort.js +6 -6
- package/src/standard/Math/Algorithms/QuickSort.js +8 -6
- package/src/standard/Math/Algorithms/SAT.js +4 -8
- package/src/standard/Math/Algorithms/eigendecomposition.js +37 -33
- package/src/standard/Math/Geometry/Box2.js +84 -56
- package/src/standard/Math/Geometry/Box3.js +400 -358
- package/src/standard/Math/Geometry/Camera.js +19 -16
- package/src/standard/Math/Geometry/Cylinder3.js +13 -13
- package/src/standard/Math/Geometry/Line3.js +34 -34
- package/src/standard/Math/Geometry/Plane3.js +15 -15
- package/src/standard/Math/Geometry/Sphere3.js +122 -105
- package/src/standard/Math/Geometry/Spheroid3.js +1 -1
- package/src/standard/Math/Geometry/Triangle2.js +5 -5
- package/src/standard/Math/Geometry/Triangle3.js +12 -14
- package/src/standard/Math/Geometry/ViewVolume.js +303 -106
- package/src/standard/Math/Numbers/Color3.js +26 -23
- package/src/standard/Math/Numbers/Color4.js +9 -9
- package/src/standard/Math/Numbers/Complex.js +13 -17
- package/src/standard/Math/Numbers/Matrix2.js +20 -13
- package/src/standard/Math/Numbers/Matrix3.js +129 -205
- package/src/standard/Math/Numbers/Matrix4.js +136 -257
- package/src/standard/Math/Numbers/Quaternion.js +49 -138
- package/src/standard/Math/Numbers/Rotation4.js +42 -55
- package/src/standard/Math/Numbers/Vector2.js +32 -115
- package/src/standard/Math/Numbers/Vector3.js +46 -151
- package/src/standard/Math/Numbers/Vector4.js +44 -163
- package/src/standard/Math/Utility/BVH.js +21 -20
- package/src/standard/Math/Utility/MatrixStack.js +4 -4
- package/src/standard/Networking/BinaryTransport.js +8 -8
- package/src/standard/Time/MicroTime.js +81 -0
- package/src/standard/Utility/DataStorage.js +11 -14
- package/src/standard/Utility/MapUtilities.js +69 -0
- package/src/standard/Utility/ObjectCache.js +2 -3
- package/src/standard/Utility/Shuffle.js +5 -6
- package/src/tests.js +84 -5
- package/src/x_ite/Base/Events.js +9 -10
- package/src/x_ite/Base/X3DChildObject.js +20 -16
- package/src/x_ite/Base/X3DEventObject.js +3 -7
- package/src/x_ite/Base/X3DObject.js +44 -27
- package/src/x_ite/Basic/FieldDefinitionArray.js +11 -4
- package/src/x_ite/Basic/X3DBaseNode.js +427 -246
- package/src/x_ite/Basic/X3DField.js +48 -69
- package/src/x_ite/Basic/X3DFieldDefinition.js +0 -4
- package/src/x_ite/Basic/X3DObjectArrayField.js +102 -108
- package/src/x_ite/Basic/X3DTypedArrayField.js +194 -163
- package/src/x_ite/Bits/TraverseType.js +2 -5
- package/src/x_ite/Bits/X3DConstants.js +11 -2
- package/src/x_ite/Browser/Core/BrowserOptions.js +89 -68
- package/src/x_ite/Browser/Core/BrowserTimings.js +21 -29
- package/src/x_ite/Browser/Core/ContextMenu.js +139 -60
- package/src/x_ite/Browser/Core/Notification.js +3 -3
- package/src/x_ite/Browser/Core/PrimitiveQuality.js +3 -7
- package/src/x_ite/Browser/Core/Shading.js +3 -7
- package/src/x_ite/Browser/Core/TextureQuality.js +3 -7
- package/src/x_ite/Browser/Core/X3DCoreContext.js +398 -58
- package/src/x_ite/Browser/Core/X3DCoreContext.js.~1~ +714 -0
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +17 -28
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +5 -14
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +81 -28
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +53 -44
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +51 -12
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +8 -9
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +98 -0
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +14 -206
- package/src/x_ite/Browser/Layout/ScreenText.js +226 -254
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +13 -11
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +15 -9
- package/src/x_ite/Browser/NURBS/NURBS.js +84 -72
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +125 -83
- package/src/x_ite/Browser/Navigation/FlyViewer.js +14 -9
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +60 -40
- package/src/x_ite/Browser/Navigation/NoneViewer.js +12 -1
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +39 -20
- package/src/x_ite/Browser/Navigation/WalkViewer.js +21 -6
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +110 -85
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +11 -6
- package/src/x_ite/Browser/Navigation/X3DViewer.js +73 -48
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +18 -24
- package/src/x_ite/Browser/Networking/urls.js +31 -16
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +5 -6
- package/src/x_ite/Browser/Picking/IntersectionType.js +63 -0
- package/src/x_ite/Browser/Picking/MatchCriterion.js +64 -0
- package/src/x_ite/Browser/Picking/SortOrder.js +65 -0
- package/src/x_ite/Browser/Picking/VolumePicker.js +197 -0
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +130 -0
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +26 -20
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +17 -10
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +38 -27
- package/src/x_ite/Browser/RigidBodyPhysics/AppliedParametersType.js +70 -0
- package/src/x_ite/Browser/Shaders/Shader.js +112 -92
- package/src/x_ite/Browser/Shaders/ShaderSource.js +140 -0
- package/src/x_ite/Browser/Shaders/ShaderTest.js +92 -77
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +134 -74
- package/src/x_ite/Browser/Shape/AlphaMode.js +65 -0
- package/src/x_ite/Browser/Shape/LineStipples.xcf +0 -0
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +108 -4
- package/src/x_ite/Browser/Text/PolygonText.js +153 -170
- package/src/x_ite/Browser/Text/TextAlignment.js +3 -7
- package/src/x_ite/Browser/Text/X3DTextContext.js +38 -30
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +49 -74
- package/src/x_ite/Browser/Texturing/MultiTextureFunctionType.js +64 -0
- package/src/x_ite/Browser/Texturing/MultiTextureModeType.js +81 -0
- package/src/x_ite/Browser/Texturing/MultiTextureSourceType.js +65 -0
- package/src/x_ite/Browser/Texturing/TextureCoordinateGeneratorModeType.js +73 -0
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +147 -45
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +1126 -0
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +686 -0
- package/src/x_ite/Browser/Time/X3DTimeContext.js +20 -17
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.fs +120 -0
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.vs +28 -0
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +114 -0
- package/src/x_ite/Browser/X3DBrowser.js +282 -224
- package/src/x_ite/Browser/X3DBrowserContext.js +60 -27
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +108 -0
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +101 -0
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +112 -0
- package/src/x_ite/Components/Annotation/IconAnnotation.js +110 -0
- package/src/x_ite/Components/Annotation/TextAnnotation.js +102 -0
- package/src/x_ite/Components/Annotation/URLAnnotation.js +101 -0
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +76 -0
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +4 -4
- package/src/x_ite/Components/CADGeometry/CADFace.js +135 -30
- package/src/x_ite/Components/CADGeometry/CADLayer.js +3 -18
- package/src/x_ite/Components/CADGeometry/CADPart.js +4 -8
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +18 -10
- package/src/x_ite/Components/Core/WorldInfo.js +16 -6
- package/src/x_ite/Components/Core/X3DBindableNode.js +4 -33
- package/src/x_ite/Components/Core/X3DChildNode.js +14 -1
- package/src/x_ite/Components/Core/X3DNode.js +0 -63
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +128 -168
- package/src/x_ite/Components/Core.js +6 -9
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +38 -46
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +31 -30
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +42 -57
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +36 -48
- package/src/x_ite/Components/DIS/EspduTransform.js +12 -6
- package/src/x_ite/Components/DIS/ReceiverPdu.js +12 -6
- package/src/x_ite/Components/DIS/SignalPdu.js +12 -6
- package/src/x_ite/Components/DIS/TransmitterPdu.js +12 -6
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +5 -16
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +55 -3
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +3 -5
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +116 -116
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +5 -6
- package/src/x_ite/Components/EnvironmentalEffects.js +6 -9
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +116 -117
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +169 -49
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +31 -27
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +12 -5
- package/src/x_ite/Components/EnvironmentalSensor.js +6 -9
- package/src/x_ite/Components/Followers/ColorChaser.js +1 -3
- package/src/x_ite/Components/Followers/ColorDamper.js +1 -3
- package/src/x_ite/Components/Followers/CoordinateChaser.js +1 -7
- package/src/x_ite/Components/Followers/CoordinateDamper.js +0 -6
- package/src/x_ite/Components/Followers/OrientationChaser.js +7 -3
- package/src/x_ite/Components/Followers/OrientationDamper.js +7 -3
- package/src/x_ite/Components/Followers/PositionChaser.js +1 -3
- package/src/x_ite/Components/Followers/PositionChaser2D.js +1 -3
- package/src/x_ite/Components/Followers/PositionDamper.js +1 -3
- package/src/x_ite/Components/Followers/PositionDamper2D.js +1 -3
- package/src/x_ite/Components/Followers/ScalarChaser.js +1 -3
- package/src/x_ite/Components/Followers/ScalarDamper.js +1 -3
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +1 -7
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +1 -7
- package/src/x_ite/Components/Followers/X3DChaserNode.js +20 -18
- package/src/x_ite/Components/Followers/X3DDamperNode.js +5 -7
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +5 -7
- package/src/x_ite/Components/Followers.js +6 -9
- package/src/x_ite/Components/Geometry2D/Arc2D.js +10 -14
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +87 -86
- package/src/x_ite/Components/Geometry2D/Circle2D.js +1 -3
- package/src/x_ite/Components/Geometry2D/Disk2D.js +43 -58
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +4 -8
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +3 -5
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +20 -16
- package/src/x_ite/Components/Geometry3D/Cone.js +1 -3
- package/src/x_ite/Components/Geometry3D/Cylinder.js +3 -5
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +35 -17
- package/src/x_ite/Components/Geometry3D/Extrusion.js +125 -107
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +164 -142
- package/src/x_ite/Components/Geometry3D/Sphere.js +3 -5
- package/src/x_ite/Components/Geometry3D.js +6 -9
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +7 -7
- package/src/x_ite/Components/Geospatial/GeoLOD.js +207 -124
- package/src/x_ite/Components/Geospatial/GeoLocation.js +6 -6
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +5 -3
- package/src/x_ite/Components/Geospatial/GeoTransform.js +9 -9
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +27 -27
- package/src/x_ite/Components/Grouping/Group.js +3 -3
- package/src/x_ite/Components/Grouping/StaticGroup.js +49 -56
- package/src/x_ite/Components/Grouping/Switch.js +171 -21
- package/src/x_ite/Components/Grouping/Transform.js +3 -3
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +68 -15
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +339 -180
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +51 -25
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +2 -4
- package/src/x_ite/Components/Grouping.js +6 -9
- package/src/x_ite/Components/{H-Anim → HAnim}/HAnimDisplacer.js +4 -4
- package/src/x_ite/Components/{H-Anim → HAnim}/HAnimHumanoid.js +24 -14
- package/src/x_ite/Components/{H-Anim → HAnim}/HAnimJoint.js +44 -20
- package/src/x_ite/Components/HAnim/HAnimMotion.js +113 -0
- package/src/x_ite/Components/{H-Anim → HAnim}/HAnimSegment.js +6 -4
- package/src/x_ite/Components/{H-Anim → HAnim}/HAnimSite.js +4 -4
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +8 -7
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +4 -3
- package/src/x_ite/Components/Interpolation.js +6 -9
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +1 -3
- package/src/x_ite/Components/Layering/Layer.js +12 -2
- package/src/x_ite/Components/Layering/LayerSet.js +4 -6
- package/src/x_ite/Components/Layering/Viewport.js +8 -8
- package/src/x_ite/Components/Layering/X3DLayerNode.js +67 -62
- package/src/x_ite/Components/Layering.js +6 -9
- package/src/x_ite/Components/Layout/LayoutGroup.js +18 -15
- package/src/x_ite/Components/Layout/LayoutLayer.js +10 -5
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +12 -14
- package/src/x_ite/Components/Layout/ScreenGroup.js +25 -31
- package/src/x_ite/Components/Lighting/DirectionalLight.js +27 -22
- package/src/x_ite/Components/Lighting/PointLight.js +26 -29
- package/src/x_ite/Components/Lighting/SpotLight.js +29 -24
- package/src/x_ite/Components/Lighting/X3DLightNode.js +85 -66
- package/src/x_ite/Components/Lighting.js +6 -9
- package/src/x_ite/Components/NURBS/Contour2D.js +45 -1
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +53 -25
- package/src/x_ite/Components/NURBS/NurbsCurve.js +21 -24
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +44 -25
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +19 -21
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +18 -20
- package/src/x_ite/Components/NURBS/NurbsSet.js +17 -6
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +2 -2
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +2 -2
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +15 -16
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +38 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +116 -43
- package/src/x_ite/Components/Navigation/Billboard.js +12 -11
- package/src/x_ite/Components/Navigation/Collision.js +10 -8
- package/src/x_ite/Components/Navigation/LOD.js +207 -59
- package/src/x_ite/Components/Navigation/NavigationInfo.js +29 -43
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +99 -18
- package/src/x_ite/Components/Navigation/Viewpoint.js +15 -15
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +12 -5
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +137 -148
- package/src/x_ite/Components/Navigation.js +6 -9
- package/src/x_ite/Components/Networking/Anchor.js +22 -24
- package/src/x_ite/Components/Networking/Inline.js +63 -44
- package/src/x_ite/Components/Networking/X3DUrlObject.js +88 -8
- package/src/x_ite/Components/Networking.js +6 -9
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +2 -2
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +215 -199
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +44 -39
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +48 -46
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +121 -117
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +21 -18
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +20 -22
- package/src/x_ite/Components/Picking/LinePickSensor.js +251 -6
- package/src/x_ite/Components/Picking/PickableGroup.js +120 -7
- package/src/x_ite/Components/Picking/PointPickSensor.js +260 -8
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +174 -4
- package/src/x_ite/Components/Picking/VolumePickSensor.js +150 -4
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +377 -4
- package/src/x_ite/Components/Picking/X3DPickableObject.js +21 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +26 -11
- package/src/x_ite/Components/PointingDeviceSensor.js +6 -9
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorParallel.js +282 -0
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorPerspective.js +227 -0
- package/src/x_ite/Components/ProjectiveTextureMapping/X3DTextureProjectorNode.js +217 -0
- package/src/x_ite/Components/Rendering/ClipPlane.js +8 -10
- package/src/x_ite/Components/Rendering/Color.js +22 -13
- package/src/x_ite/Components/Rendering/ColorRGBA.js +28 -16
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +52 -33
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +17 -14
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +9 -4
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +17 -17
- package/src/x_ite/Components/Rendering/LineSet.js +44 -27
- package/src/x_ite/Components/Rendering/Normal.js +20 -4
- package/src/x_ite/Components/Rendering/PointSet.js +38 -16
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +7 -9
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +6 -8
- package/src/x_ite/Components/Rendering/X3DColorNode.js +16 -1
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +80 -55
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +11 -13
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +622 -477
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +159 -90
- package/src/x_ite/Components/Rendering.js +6 -9
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +8 -10
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +142 -26
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +312 -128
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +91 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +189 -4
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +82 -4
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +49 -37
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +45 -39
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +41 -34
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +25 -20
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +8 -10
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +15 -16
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +2 -4
- package/src/x_ite/Components/Scripting/Script.js +147 -101
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +2 -4
- package/src/x_ite/Components/Shaders/ComposedShader.js +17 -19
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +9 -3
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +10 -3
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +10 -3
- package/src/x_ite/Components/Shaders/PackagedShader.js +18 -14
- package/src/x_ite/Components/Shaders/ShaderPart.js +30 -18
- package/src/x_ite/Components/Shaders/ShaderProgram.js +15 -11
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +681 -558
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +48 -12
- package/src/x_ite/Components/Shaders.js +15 -18
- package/src/x_ite/Components/Shape/Appearance.js +153 -77
- package/src/x_ite/Components/Shape/FillProperties.js +63 -4
- package/src/x_ite/Components/Shape/LineProperties.js +27 -5
- package/src/x_ite/Components/Shape/Material.js +48 -62
- package/src/x_ite/Components/Shape/PointProperties.js +162 -0
- package/src/x_ite/Components/Shape/Shape.js +86 -39
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +53 -59
- package/src/x_ite/Components/Shape/UnlitMaterial.js +109 -0
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +9 -6
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +16 -3
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +111 -0
- package/src/x_ite/Components/Shape/X3DShapeNode.js +41 -17
- package/src/x_ite/Components/Shape.js +22 -16
- package/src/x_ite/Components/Sound/AudioClip.js +36 -50
- package/src/x_ite/Components/Sound/Sound.js +36 -36
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +18 -6
- package/src/x_ite/Components/Sound.js +6 -9
- package/src/x_ite/Components/Text/FontStyle.js +10 -12
- package/src/x_ite/Components/Text/Text.js +6 -6
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +56 -87
- package/src/x_ite/Components/Text.js +6 -9
- package/src/x_ite/Components/Texturing/ImageTexture.js +48 -63
- package/src/x_ite/Components/Texturing/MovieTexture.js +42 -56
- package/src/x_ite/Components/Texturing/MultiTexture.js +236 -11
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +73 -6
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +45 -4
- package/src/x_ite/Components/Texturing/PixelTexture.js +45 -11
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +32 -17
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +68 -8
- package/src/x_ite/Components/Texturing/TextureProperties.js +96 -65
- package/src/x_ite/Components/Texturing/TextureTransform.js +55 -47
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +91 -0
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +183 -0
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +77 -0
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +42 -95
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js.~1~ +209 -0
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +3 -17
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +6 -67
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +4 -11
- package/src/x_ite/Components/Texturing.js +31 -25
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +88 -4
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +105 -13
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +124 -4
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +35 -18
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +35 -18
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +41 -31
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +18 -11
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +110 -6
- package/src/x_ite/Components/Time/TimeSensor.js +23 -19
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +11 -7
- package/src/x_ite/Components/Time.js +6 -9
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +309 -8
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +58 -4
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +217 -6
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +132 -3
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +86 -5
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +309 -11
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +85 -3
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +134 -2
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +222 -9
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +191 -8
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +85 -6
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +95 -5
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +153 -8
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +155 -3
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +62 -0
- package/src/x_ite/Components/X_ITE/BlendMode.js +51 -51
- package/src/x_ite/Components.js +11 -16
- package/src/x_ite/Configuration/ComponentInfo.js +12 -6
- package/src/x_ite/Configuration/ComponentInfoArray.js +4 -7
- package/src/x_ite/Configuration/ProfileInfo.js +10 -6
- package/src/x_ite/Configuration/SupportedComponents.js +66 -40
- package/src/x_ite/Configuration/SupportedNodes.js +22 -6
- package/src/x_ite/Configuration/SupportedProfiles.js +91 -89
- package/src/x_ite/Configuration/UnitInfo.js +12 -2
- package/src/x_ite/Configuration/X3DInfoArray.js +37 -18
- package/src/x_ite/Execution/BindableList.js +63 -38
- package/src/x_ite/Execution/BindableStack.js +63 -71
- package/src/x_ite/Execution/ExportedNode.js +25 -2
- package/src/x_ite/Execution/ImportedNode.js +122 -39
- package/src/x_ite/Execution/Scene.js +22 -14
- package/src/x_ite/Execution/World.js +22 -19
- package/src/x_ite/Execution/X3DExecutionContext.js +381 -221
- package/src/x_ite/Execution/X3DScene.js +213 -53
- package/src/x_ite/{Error.js → Fallback.js} +26 -29
- package/src/x_ite/Fields/ArrayFields.js +176 -57
- package/src/x_ite/Fields/SFBool.js +6 -5
- package/src/x_ite/Fields/SFColor.js +24 -21
- package/src/x_ite/Fields/SFColorRGBA.js +23 -23
- package/src/x_ite/Fields/SFDouble.js +6 -5
- package/src/x_ite/Fields/SFFloat.js +7 -6
- package/src/x_ite/Fields/SFImage.js +37 -36
- package/src/x_ite/Fields/SFInt32.js +5 -4
- package/src/x_ite/Fields/SFMatrix3.js +19 -15
- package/src/x_ite/Fields/SFMatrix4.js +19 -15
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +10 -2
- package/src/x_ite/Fields/SFNode.js +105 -53
- package/src/x_ite/Fields/SFNodeCache.js +93 -0
- package/src/x_ite/Fields/SFRotation.js +31 -27
- package/src/x_ite/Fields/SFString.js +9 -8
- package/src/x_ite/Fields/SFTime.js +6 -5
- package/src/x_ite/Fields/SFVec2.js +17 -13
- package/src/x_ite/Fields/SFVec3.js +21 -17
- package/src/x_ite/Fields/SFVec4.js +24 -20
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +8 -4
- package/src/x_ite/Fields.js +2 -6
- package/src/x_ite/InputOutput/FileLoader.js +174 -190
- package/src/x_ite/InputOutput/Generator.js +133 -104
- package/src/x_ite/Parser/HTMLSupport.js +3 -596
- package/src/x_ite/Parser/JSONParser.js +348 -245
- package/src/x_ite/Parser/Parser.js +314 -303
- package/src/x_ite/Parser/X3DParser.js +41 -20
- package/src/x_ite/Parser/XMLParser.js +178 -60
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +17 -0
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +17 -0
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +104 -44
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +111 -42
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +16 -14
- package/src/x_ite/Rendering/DependentRenderer.js +7 -9
- package/src/x_ite/Rendering/TextureBuffer.js +24 -19
- package/src/x_ite/Rendering/X3DRenderObject.js +455 -428
- package/src/x_ite/Routing/RouteArray.js +34 -11
- package/src/x_ite/Routing/X3DRoute.js +60 -60
- package/src/x_ite/Routing/X3DRoutingContext.js +6 -6
- package/src/x_ite/X3D.js +30 -37
- package/src/x_ite.config.js +40 -5
- package/src/x_ite.css +165 -45
- package/src/x_ite.html +49 -29
- package/src/x_ite.js +86 -25
- package/x_ite.min.html +49 -22
- package/.bzrignore +0 -3
- package/AUTHORS.md +0 -6
- package/STYLE_GUIDE.md +0 -51
- package/X_ITE.sln +0 -54
- package/X_ITE.userprefs +0 -14
- package/build/build.mdproj +0 -47
- package/build/cad-geometry.build.js +0 -15
- package/build/geospatial.build.js +0 -15
- package/build/h-anim.build.js +0 -15
- package/build/nurbs.build.js +0 -15
- package/build/particle-systems.build.js +0 -15
- package/build/parts/cad-geometry.end.frag +0 -2
- package/build/parts/cad-geometry.start.frag +0 -6
- package/build/parts/geospatial.end.frag +0 -2
- package/build/parts/geospatial.start.frag +0 -6
- package/build/parts/h-anim.end.frag +0 -2
- package/build/parts/h-anim.start.frag +0 -6
- package/build/parts/nurbs.end.frag +0 -2
- package/build/parts/nurbs.start.frag +0 -6
- package/build/parts/particle-systems.end.frag +0 -2
- package/build/parts/particle-systems.start.frag +0 -6
- package/build/parts/rigid-body-physics.end.frag +0 -2
- package/build/parts/rigid-body-physics.start.frag +0 -6
- package/build/parts/texturing-3d.end.frag +0 -2
- package/build/parts/texturing-3d.start.frag +0 -6
- package/build/parts/x_ite.end.frag +0 -9
- package/build/parts/x_ite.start.frag +0 -6
- package/build/rigid-body-physics.build.js +0 -15
- package/build/texturing-3d.build.js +0 -15
- package/dist/components/README +0 -3
- package/dist/components/cad-geometry.min.js +0 -1
- package/dist/components/geospatial.min.js +0 -2
- package/dist/components/h-anim.min.js +0 -1
- package/dist/components/nurbs.min.js +0 -2
- package/dist/components/particle-systems.min.js +0 -2
- package/dist/components/rigid-body-physics.js +0 -3761
- package/dist/components/rigid-body-physics.min.js +0 -56
- package/dist/components/texturing-3d.min.js +0 -1
- package/dist/dist.mdproj +0 -61
- package/dist/images/logo.128.png +0 -0
- package/fonts/fonts.mdproj +0 -29
- package/meta/meta.mdproj +0 -35
- package/src/components/cad-geometry.config.js +0 -56
- package/src/components/geospatial.config.js +0 -56
- package/src/components/h-anim.config.js +0 -56
- package/src/components/nurbs.config.js +0 -61
- package/src/components/particle-systems.config.js +0 -56
- package/src/components/rigid-body-physics.config.js +0 -61
- package/src/components/texturing-3d.config.js +0 -56
- package/src/images/logo.128.png +0 -0
- package/src/locale/de.mo +0 -0
- package/src/locale/fr.mo +0 -0
- package/src/src.mdproj +0 -698
- package/src/standard/Networking/URI.js +0 -785
- package/src/test.x3d +0 -225
- package/src/x_ite/Browser/Shaders/Background.fs +0 -31
- package/src/x_ite/Browser/Shaders/Background.vs +0 -23
- package/src/x_ite/Browser/Shaders/Depth.fs +0 -32
- package/src/x_ite/Browser/Shaders/Depth.vs +0 -21
- package/src/x_ite/Browser/Shaders/Gouraud.fs +0 -135
- package/src/x_ite/Browser/Shaders/Gouraud.vs +0 -145
- package/src/x_ite/Browser/Shaders/Phong.fs +0 -269
- package/src/x_ite/Browser/Shaders/Phong.vs +0 -47
- package/src/x_ite/Browser/Shaders/PointSet.fs +0 -86
- package/src/x_ite/Browser/Shaders/Types.h +0 -55
- package/src/x_ite/Browser/Shaders/Wireframe.fs +0 -82
- package/src/x_ite/Browser/Shaders/Wireframe.vs +0 -61
- package/src/x_ite/Components/DIS.js +0 -91
- package/src/x_ite/Components/Picking.js +0 -94
- package/src/x_ite/Components/VolumeRendering.js +0 -121
|
@@ -62,19 +62,6 @@ function (Vector3,
|
|
|
62
62
|
{
|
|
63
63
|
"use strict";
|
|
64
64
|
|
|
65
|
-
var
|
|
66
|
-
dummyTranslation = new Vector3 (0, 0, 0),
|
|
67
|
-
dummyRotation = new Rotation4 (),
|
|
68
|
-
dummyScale = new Vector3 (0, 0, 0),
|
|
69
|
-
dummyScaleOrientation = new Rotation4 (),
|
|
70
|
-
dummyCenter = new Vector3 (0, 0, 0),
|
|
71
|
-
rot = new Matrix3 (),
|
|
72
|
-
so = new Matrix3 (),
|
|
73
|
-
si = new Matrix3 (),
|
|
74
|
-
sosi = new Matrix3 (),
|
|
75
|
-
c = new Vector3 (0, 0, 0),
|
|
76
|
-
b = new Matrix3 ();
|
|
77
|
-
|
|
78
65
|
function Matrix4 ()
|
|
79
66
|
{
|
|
80
67
|
if (arguments .length)
|
|
@@ -97,7 +84,9 @@ function (Vector3,
|
|
|
97
84
|
this [15] = arguments [15];
|
|
98
85
|
}
|
|
99
86
|
else
|
|
87
|
+
{
|
|
100
88
|
this .identity ();
|
|
89
|
+
}
|
|
101
90
|
}
|
|
102
91
|
|
|
103
92
|
Matrix4 .prototype =
|
|
@@ -107,7 +96,7 @@ function (Vector3,
|
|
|
107
96
|
length: 16,
|
|
108
97
|
copy: function ()
|
|
109
98
|
{
|
|
110
|
-
|
|
99
|
+
const copy = Object .create (Matrix4 .prototype);
|
|
111
100
|
copy [ 0] = this [ 0];
|
|
112
101
|
copy [ 1] = this [ 1];
|
|
113
102
|
copy [ 2] = this [ 2];
|
|
@@ -237,7 +226,7 @@ function (Vector3,
|
|
|
237
226
|
|
|
238
227
|
if (! scale .equals (Vector3 .One))
|
|
239
228
|
{
|
|
240
|
-
|
|
229
|
+
const hasScaleOrientation = ! scaleOrientation .equals (Rotation4 .Identity);
|
|
241
230
|
|
|
242
231
|
if (hasScaleOrientation)
|
|
243
232
|
{
|
|
@@ -263,7 +252,7 @@ function (Vector3,
|
|
|
263
252
|
this .identity ();
|
|
264
253
|
this .translate (translation);
|
|
265
254
|
|
|
266
|
-
|
|
255
|
+
const hasCenter = ! center .equals (Vector3 .Zero);
|
|
267
256
|
|
|
268
257
|
if (hasCenter)
|
|
269
258
|
this .translate (center);
|
|
@@ -312,60 +301,73 @@ function (Vector3,
|
|
|
312
301
|
|
|
313
302
|
return this;
|
|
314
303
|
},
|
|
315
|
-
get: function (
|
|
304
|
+
get: (function ()
|
|
316
305
|
{
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
306
|
+
const
|
|
307
|
+
dummyTranslation = new Vector3 (0, 0, 0),
|
|
308
|
+
dummyRotation = new Rotation4 (),
|
|
309
|
+
dummyScale = new Vector3 (0, 0, 0),
|
|
310
|
+
dummyScaleOrientation = new Rotation4 (),
|
|
311
|
+
dummyCenter = new Vector3 (0, 0, 0),
|
|
312
|
+
rot = new Matrix3 (),
|
|
313
|
+
so = new Matrix3 (),
|
|
314
|
+
c = new Vector3 (0, 0, 0);
|
|
315
|
+
|
|
316
|
+
return function (translation, rotation, scale, scaleOrientation, center)
|
|
324
317
|
{
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this .factor (translation, rot, dummyScale, so);
|
|
333
|
-
rotation .setMatrix (rot);
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
case 3:
|
|
337
|
-
{
|
|
338
|
-
this .factor (translation, rot, scale, so);
|
|
339
|
-
rotation .setMatrix (rot);
|
|
340
|
-
break;
|
|
341
|
-
}
|
|
342
|
-
case 4:
|
|
343
|
-
{
|
|
344
|
-
this .factor (translation, rot, scale, so);
|
|
345
|
-
rotation .setMatrix (rot);
|
|
346
|
-
scaleOrientation .setMatrix (so);
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
case 5:
|
|
318
|
+
if (translation === null) translation = dummyTranslation;
|
|
319
|
+
if (rotation === null) rotation = dummyRotation;
|
|
320
|
+
if (scale === null) scale = dummyScale;
|
|
321
|
+
if (scaleOrientation === null) scaleOrientation = dummyScaleOrientation;
|
|
322
|
+
if (center === null) center = dummyCenter;
|
|
323
|
+
|
|
324
|
+
switch (arguments .length)
|
|
350
325
|
{
|
|
351
|
-
|
|
326
|
+
case 1:
|
|
327
|
+
{
|
|
328
|
+
translation .set (this [12], this [13], this [14]);
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
case 2:
|
|
332
|
+
{
|
|
333
|
+
this .factor (translation, rot, dummyScale, so);
|
|
334
|
+
rotation .setMatrix (rot);
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
case 3:
|
|
338
|
+
{
|
|
339
|
+
this .factor (translation, rot, scale, so);
|
|
340
|
+
rotation .setMatrix (rot);
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
case 4:
|
|
344
|
+
{
|
|
345
|
+
this .factor (translation, rot, scale, so);
|
|
346
|
+
rotation .setMatrix (rot);
|
|
347
|
+
scaleOrientation .setMatrix (so);
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
case 5:
|
|
351
|
+
{
|
|
352
|
+
const m = new Matrix4 ();
|
|
352
353
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
m .set (c .assign (center) .negate ());
|
|
355
|
+
m .multLeft (this);
|
|
356
|
+
m .translate (center);
|
|
356
357
|
|
|
357
|
-
|
|
358
|
-
|
|
358
|
+
m .get (translation, rotation, scale, scaleOrientation);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
359
361
|
}
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
+
};
|
|
363
|
+
})(),
|
|
362
364
|
setRotation: function (rotation)
|
|
363
365
|
{
|
|
364
366
|
return this .setQuaternion (rotation .value);
|
|
365
367
|
},
|
|
366
368
|
setQuaternion: function (quaternion)
|
|
367
369
|
{
|
|
368
|
-
|
|
370
|
+
const
|
|
369
371
|
x = quaternion .x,
|
|
370
372
|
y = quaternion .y,
|
|
371
373
|
z = quaternion .z,
|
|
@@ -399,50 +401,57 @@ function (Vector3,
|
|
|
399
401
|
|
|
400
402
|
return this;
|
|
401
403
|
},
|
|
402
|
-
factor: function (
|
|
404
|
+
factor: (function ()
|
|
403
405
|
{
|
|
404
|
-
|
|
405
|
-
|
|
406
|
+
const
|
|
407
|
+
si = new Matrix3 (),
|
|
408
|
+
u = new Matrix3 (),
|
|
409
|
+
b = new Matrix3 ();
|
|
406
410
|
|
|
407
|
-
|
|
408
|
-
var a = this .submatrix;
|
|
411
|
+
const eigen = { values: [ ], vectors: [[ ], [ ], [ ]] };
|
|
409
412
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
+
return function (translation, rotation, scale, scaleOrientation)
|
|
414
|
+
{
|
|
415
|
+
// (1) Get translation.
|
|
416
|
+
translation .set (this [12], this [13], this [14]);
|
|
413
417
|
|
|
414
|
-
|
|
415
|
-
|
|
418
|
+
// (2) Create 3x3 matrix.
|
|
419
|
+
const a = this .submatrix;
|
|
416
420
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
421
|
+
// (3) Compute det A. If negative, set sign = -1, else sign = 1
|
|
422
|
+
const det = a .determinant ();
|
|
423
|
+
const det_sign = det < 0 ? -1 : 1;
|
|
420
424
|
|
|
421
|
-
|
|
425
|
+
if (det === 0)
|
|
426
|
+
throw new Error ("Matrix4 .factor: determinant is 0.");
|
|
422
427
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
428
|
+
// (4) B = A * !A (here !A means A transpose)
|
|
429
|
+
b .assign (a) .transpose () .multLeft (a);
|
|
430
|
+
const e = eigendecomposition (b, eigen);
|
|
426
431
|
|
|
427
|
-
|
|
432
|
+
// Find min / max eigenvalues and do ratio test to determine singularity.
|
|
428
433
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
434
|
+
scaleOrientation .set (e .vectors [0] [0], e .vectors [1] [0], e .vectors [2] [0],
|
|
435
|
+
e .vectors [0] [1], e .vectors [1] [1], e .vectors [2] [1],
|
|
436
|
+
e .vectors [0] [2], e .vectors [1] [2], e .vectors [2] [2]);
|
|
432
437
|
|
|
433
|
-
|
|
434
|
-
si [4] = 1 / scale .y;
|
|
435
|
-
si [8] = 1 / scale .z;
|
|
438
|
+
// Compute s = sqrt(evalues), with sign. Set si = s-inverse
|
|
436
439
|
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
scale .x = det_sign * Math .sqrt (e .values [0]);
|
|
441
|
+
scale .y = det_sign * Math .sqrt (e .values [1]);
|
|
442
|
+
scale .z = det_sign * Math .sqrt (e .values [2]);
|
|
439
443
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
444
|
+
si [0] = 1 / scale .x;
|
|
445
|
+
si [4] = 1 / scale .y;
|
|
446
|
+
si [8] = 1 / scale .z;
|
|
447
|
+
|
|
448
|
+
// (5) Compute U = !R ~S R A.
|
|
449
|
+
rotation .assign (u .assign (scaleOrientation) .transpose () .multRight (si) .multRight (scaleOrientation) .multRight (a));
|
|
450
|
+
};
|
|
451
|
+
})(),
|
|
443
452
|
determinant3: function ()
|
|
444
453
|
{
|
|
445
|
-
|
|
454
|
+
const
|
|
446
455
|
m00 = this [0], m01 = this [1], m02 = this [ 2],
|
|
447
456
|
m04 = this [4], m05 = this [5], m06 = this [ 6],
|
|
448
457
|
m08 = this [8], m09 = this [9], m10 = this [10];
|
|
@@ -453,7 +462,7 @@ function (Vector3,
|
|
|
453
462
|
},
|
|
454
463
|
determinant: function ()
|
|
455
464
|
{
|
|
456
|
-
|
|
465
|
+
const
|
|
457
466
|
m00 = this [ 0],
|
|
458
467
|
m01 = this [ 1],
|
|
459
468
|
m02 = this [ 2],
|
|
@@ -491,20 +500,20 @@ function (Vector3,
|
|
|
491
500
|
},
|
|
492
501
|
transpose: function ()
|
|
493
502
|
{
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
tmp = this [ 1]; this [ 1] = this [ 4]; this [
|
|
497
|
-
tmp = this [ 2]; this [ 2] = this [ 8]; this [
|
|
498
|
-
tmp = this [ 3]; this [ 3] = this [12]; this [
|
|
499
|
-
tmp = this [ 6]; this [ 6] = this [ 9]; this [
|
|
500
|
-
tmp = this [ 7]; this [ 7] = this [13]; this [
|
|
501
|
-
tmp = this [11]; this [11] = this [14]; this [
|
|
503
|
+
let tmp;
|
|
504
|
+
|
|
505
|
+
tmp = this [ 1]; this [ 1] = this [ 4]; this [ 4] = tmp;
|
|
506
|
+
tmp = this [ 2]; this [ 2] = this [ 8]; this [ 8] = tmp;
|
|
507
|
+
tmp = this [ 3]; this [ 3] = this [12]; this [12] = tmp;
|
|
508
|
+
tmp = this [ 6]; this [ 6] = this [ 9]; this [ 9] = tmp;
|
|
509
|
+
tmp = this [ 7]; this [ 7] = this [13]; this [13] = tmp;
|
|
510
|
+
tmp = this [11]; this [11] = this [14]; this [14] = tmp;
|
|
502
511
|
|
|
503
512
|
return this;
|
|
504
513
|
},
|
|
505
514
|
inverse: function ()
|
|
506
515
|
{
|
|
507
|
-
|
|
516
|
+
const
|
|
508
517
|
m00 = this [ 0],
|
|
509
518
|
m01 = this [ 1],
|
|
510
519
|
m02 = this [ 2],
|
|
@@ -548,8 +557,9 @@ function (Vector3,
|
|
|
548
557
|
H = b * m05 + e * m09 + f * m13 - ((c * m05) + (d * m09) + (g * m13)),
|
|
549
558
|
I = c * m01 + h * m09 + o * m13 - ((b * m01) + (i * m09) + (j * m13)),
|
|
550
559
|
J = d * m01 + i * m05 + r * m13 - ((e * m01) + (h * m05) + (x * m13)),
|
|
551
|
-
K = g * m01 + j * m05 + x * m09 - ((f * m01) + (o * m05) + (r * m09))
|
|
552
|
-
|
|
560
|
+
K = g * m01 + j * m05 + x * m09 - ((f * m01) + (o * m05) + (r * m09));
|
|
561
|
+
|
|
562
|
+
let B = m00 * H + m04 * I + m08 * J + m12 * K;
|
|
553
563
|
|
|
554
564
|
if (B === 0)
|
|
555
565
|
throw new Error ("Matrix4 .inverse: determinant is 0.");
|
|
@@ -577,7 +587,7 @@ function (Vector3,
|
|
|
577
587
|
},
|
|
578
588
|
multLeft: function (matrix)
|
|
579
589
|
{
|
|
580
|
-
|
|
590
|
+
const
|
|
581
591
|
a00 = this [ 0], a01 = this [ 1], a02 = this [ 2], a03 = this [ 3],
|
|
582
592
|
a04 = this [ 4], a05 = this [ 5], a06 = this [ 6], a07 = this [ 7],
|
|
583
593
|
a08 = this [ 8], a09 = this [ 9], a10 = this [10], a11 = this [11],
|
|
@@ -608,7 +618,7 @@ function (Vector3,
|
|
|
608
618
|
},
|
|
609
619
|
multRight: function (matrix)
|
|
610
620
|
{
|
|
611
|
-
|
|
621
|
+
const
|
|
612
622
|
a00 = this [ 0], a01 = this [ 1], a02 = this [ 2], a03 = this [ 3],
|
|
613
623
|
a04 = this [ 4], a05 = this [ 5], a06 = this [ 6], a07 = this [ 7],
|
|
614
624
|
a08 = this [ 8], a09 = this [ 9], a10 = this [10], a11 = this [11],
|
|
@@ -641,7 +651,7 @@ function (Vector3,
|
|
|
641
651
|
{
|
|
642
652
|
if (vector .length === 3)
|
|
643
653
|
{
|
|
644
|
-
|
|
654
|
+
const
|
|
645
655
|
x = vector .x,
|
|
646
656
|
y = vector .y,
|
|
647
657
|
z = vector .z,
|
|
@@ -650,11 +660,11 @@ function (Vector3,
|
|
|
650
660
|
vector .x = (x * this [0] + y * this [4] + z * this [ 8] + this [12]) * w;
|
|
651
661
|
vector .y = (x * this [1] + y * this [5] + z * this [ 9] + this [13]) * w;
|
|
652
662
|
vector .z = (x * this [2] + y * this [6] + z * this [10] + this [14]) * w;
|
|
653
|
-
|
|
663
|
+
|
|
654
664
|
return vector;
|
|
655
665
|
}
|
|
656
666
|
|
|
657
|
-
|
|
667
|
+
const
|
|
658
668
|
x = vector .x,
|
|
659
669
|
y = vector .y,
|
|
660
670
|
z = vector .z,
|
|
@@ -671,7 +681,7 @@ function (Vector3,
|
|
|
671
681
|
{
|
|
672
682
|
if (vector .length === 3)
|
|
673
683
|
{
|
|
674
|
-
|
|
684
|
+
const
|
|
675
685
|
x = vector .x,
|
|
676
686
|
y = vector .y,
|
|
677
687
|
z = vector .z,
|
|
@@ -683,8 +693,8 @@ function (Vector3,
|
|
|
683
693
|
|
|
684
694
|
return vector;
|
|
685
695
|
}
|
|
686
|
-
|
|
687
|
-
|
|
696
|
+
|
|
697
|
+
const
|
|
688
698
|
x = vector .x,
|
|
689
699
|
y = vector .y,
|
|
690
700
|
z = vector .z,
|
|
@@ -699,7 +709,7 @@ function (Vector3,
|
|
|
699
709
|
},
|
|
700
710
|
multDirMatrix: function (vector)
|
|
701
711
|
{
|
|
702
|
-
|
|
712
|
+
const
|
|
703
713
|
x = vector .x,
|
|
704
714
|
y = vector .y,
|
|
705
715
|
z = vector .z;
|
|
@@ -712,7 +722,7 @@ function (Vector3,
|
|
|
712
722
|
},
|
|
713
723
|
multMatrixDir: function (vector)
|
|
714
724
|
{
|
|
715
|
-
|
|
725
|
+
const
|
|
716
726
|
x = vector .x,
|
|
717
727
|
y = vector .y,
|
|
718
728
|
z = vector .z;
|
|
@@ -732,7 +742,7 @@ function (Vector3,
|
|
|
732
742
|
},
|
|
733
743
|
translate: function (translation)
|
|
734
744
|
{
|
|
735
|
-
|
|
745
|
+
const
|
|
736
746
|
x = translation .x,
|
|
737
747
|
y = translation .y,
|
|
738
748
|
z = translation .z;
|
|
@@ -751,7 +761,7 @@ function (Vector3,
|
|
|
751
761
|
},
|
|
752
762
|
scale: function (scale)
|
|
753
763
|
{
|
|
754
|
-
|
|
764
|
+
const
|
|
755
765
|
x = scale .x,
|
|
756
766
|
y = scale .y,
|
|
757
767
|
z = scale .z;
|
|
@@ -772,7 +782,7 @@ function (Vector3,
|
|
|
772
782
|
},
|
|
773
783
|
getDepth: function (vector)
|
|
774
784
|
{
|
|
775
|
-
|
|
785
|
+
const
|
|
776
786
|
x = vector .x,
|
|
777
787
|
y = vector .y,
|
|
778
788
|
z = vector .z,
|
|
@@ -793,7 +803,7 @@ function (Vector3,
|
|
|
793
803
|
{
|
|
794
804
|
get: (function ()
|
|
795
805
|
{
|
|
796
|
-
|
|
806
|
+
const vector = new Vector4 (0, 0, 0, 0);
|
|
797
807
|
|
|
798
808
|
return function () { return vector .set (this [0], this [1], this [2], this [3]); };
|
|
799
809
|
})(),
|
|
@@ -805,7 +815,7 @@ function (Vector3,
|
|
|
805
815
|
{
|
|
806
816
|
get: (function ()
|
|
807
817
|
{
|
|
808
|
-
|
|
818
|
+
const vector = new Vector4 (0, 0, 0, 0);
|
|
809
819
|
|
|
810
820
|
return function () { return vector .set (this [4], this [5], this [6], this [7]); };
|
|
811
821
|
})(),
|
|
@@ -817,7 +827,7 @@ function (Vector3,
|
|
|
817
827
|
{
|
|
818
828
|
get: (function ()
|
|
819
829
|
{
|
|
820
|
-
|
|
830
|
+
const vector = new Vector4 (0, 0, 0, 0);
|
|
821
831
|
|
|
822
832
|
return function () { return vector .set (this [8], this [9], this [10], this [11]); };
|
|
823
833
|
})(),
|
|
@@ -829,7 +839,7 @@ function (Vector3,
|
|
|
829
839
|
{
|
|
830
840
|
get: (function ()
|
|
831
841
|
{
|
|
832
|
-
|
|
842
|
+
const vector = new Vector3 (0, 0, 0);
|
|
833
843
|
|
|
834
844
|
return function () { return vector .set (this [0], this [1], this [2]); };
|
|
835
845
|
})(),
|
|
@@ -841,7 +851,7 @@ function (Vector3,
|
|
|
841
851
|
{
|
|
842
852
|
get: (function ()
|
|
843
853
|
{
|
|
844
|
-
|
|
854
|
+
const vector = new Vector3 (0, 0, 0);
|
|
845
855
|
|
|
846
856
|
return function () { return vector .set (this [4], this [5], this [6]); };
|
|
847
857
|
})(),
|
|
@@ -853,7 +863,7 @@ function (Vector3,
|
|
|
853
863
|
{
|
|
854
864
|
get: (function ()
|
|
855
865
|
{
|
|
856
|
-
|
|
866
|
+
const vector = new Vector3 (0, 0, 0);
|
|
857
867
|
|
|
858
868
|
return function () { return vector .set (this [8], this [9], this [10]); };
|
|
859
869
|
})(),
|
|
@@ -865,7 +875,7 @@ function (Vector3,
|
|
|
865
875
|
{
|
|
866
876
|
get: (function ()
|
|
867
877
|
{
|
|
868
|
-
|
|
878
|
+
const vector = new Vector3 (0, 0, 0);
|
|
869
879
|
|
|
870
880
|
return function () { return vector .set (this [12], this [13], this [14]); };
|
|
871
881
|
})(),
|
|
@@ -877,7 +887,7 @@ function (Vector3,
|
|
|
877
887
|
{
|
|
878
888
|
get: (function ()
|
|
879
889
|
{
|
|
880
|
-
|
|
890
|
+
const matrix = new Matrix3 ();
|
|
881
891
|
|
|
882
892
|
return function ()
|
|
883
893
|
{
|
|
@@ -911,154 +921,23 @@ function (Vector3,
|
|
|
911
921
|
},
|
|
912
922
|
transpose: function (matrix)
|
|
913
923
|
{
|
|
914
|
-
|
|
915
|
-
copy [ 0] = matrix [ 0]; copy [ 1] = matrix [ 4]; copy [ 2] = matrix [ 8]; copy [ 3] = matrix [12];
|
|
916
|
-
copy [ 4] = matrix [ 1]; copy [ 5] = matrix [ 5]; copy [ 6] = matrix [ 9]; copy [ 7] = matrix [13];
|
|
917
|
-
copy [ 8] = matrix [ 2]; copy [ 9] = matrix [ 6]; copy [10] = matrix [10]; copy [11] = matrix [14];
|
|
918
|
-
copy [12] = matrix [ 3]; copy [13] = matrix [ 7]; copy [14] = matrix [11]; copy [15] = matrix [15];
|
|
919
|
-
return copy;
|
|
924
|
+
return matrix .copy () .transpose ();
|
|
920
925
|
},
|
|
921
926
|
inverse: function (matrix)
|
|
922
927
|
{
|
|
923
|
-
|
|
924
|
-
copy = Object .create (this .prototype),
|
|
925
|
-
m00 = matrix [ 0],
|
|
926
|
-
m01 = matrix [ 1],
|
|
927
|
-
m02 = matrix [ 2],
|
|
928
|
-
m03 = matrix [ 3],
|
|
929
|
-
m04 = matrix [ 4],
|
|
930
|
-
m05 = matrix [ 5],
|
|
931
|
-
m06 = matrix [ 6],
|
|
932
|
-
m07 = matrix [ 7],
|
|
933
|
-
m08 = matrix [ 8],
|
|
934
|
-
m09 = matrix [ 9],
|
|
935
|
-
m10 = matrix [10],
|
|
936
|
-
m11 = matrix [11],
|
|
937
|
-
m12 = matrix [12],
|
|
938
|
-
m13 = matrix [13],
|
|
939
|
-
m14 = matrix [14],
|
|
940
|
-
m15 = matrix [15],
|
|
941
|
-
b = m10 * m15,
|
|
942
|
-
c = m14 * m11,
|
|
943
|
-
d = m06 * m15,
|
|
944
|
-
e = m14 * m07,
|
|
945
|
-
f = m06 * m11,
|
|
946
|
-
g = m10 * m07,
|
|
947
|
-
h = m02 * m15,
|
|
948
|
-
i = m14 * m03,
|
|
949
|
-
j = m02 * m11,
|
|
950
|
-
o = m10 * m03,
|
|
951
|
-
r = m02 * m07,
|
|
952
|
-
x = m06 * m03,
|
|
953
|
-
t = m08 * m13,
|
|
954
|
-
p = m12 * m09,
|
|
955
|
-
v = m04 * m13,
|
|
956
|
-
s = m12 * m05,
|
|
957
|
-
y = m04 * m09,
|
|
958
|
-
z = m08 * m05,
|
|
959
|
-
A = m00 * m13,
|
|
960
|
-
C = m12 * m01,
|
|
961
|
-
D = m00 * m09,
|
|
962
|
-
E = m08 * m01,
|
|
963
|
-
F = m00 * m05,
|
|
964
|
-
G = m04 * m01,
|
|
965
|
-
H = b * m05 + e * m09 + f * m13 - ((c * m05) + (d * m09) + (g * m13)),
|
|
966
|
-
I = c * m01 + h * m09 + o * m13 - ((b * m01) + (i * m09) + (j * m13)),
|
|
967
|
-
J = d * m01 + i * m05 + r * m13 - ((e * m01) + (h * m05) + (x * m13)),
|
|
968
|
-
K = g * m01 + j * m05 + x * m09 - ((f * m01) + (o * m05) + (r * m09)),
|
|
969
|
-
B = m00 * H + m04 * I + m08 * J + m12 * K;
|
|
970
|
-
|
|
971
|
-
if (B == 0)
|
|
972
|
-
throw new Error ("Matrix4 .inverse: determinant is 0.");
|
|
973
|
-
|
|
974
|
-
B = 1 / B;
|
|
975
|
-
|
|
976
|
-
copy [ 0] = B * H;
|
|
977
|
-
copy [ 1] = B * I;
|
|
978
|
-
copy [ 2] = B * J;
|
|
979
|
-
copy [ 3] = B * K;
|
|
980
|
-
copy [ 4] = B * (c * m04 + d * m08 + g * m12 - (b * m04) - (e * m08) - (f * m12));
|
|
981
|
-
copy [ 5] = B * (b * m00 + i * m08 + j * m12 - (c * m00) - (h * m08) - (o * m12));
|
|
982
|
-
copy [ 6] = B * (e * m00 + h * m04 + x * m12 - (d * m00) - (i * m04) - (r * m12));
|
|
983
|
-
copy [ 7] = B * (f * m00 + o * m04 + r * m08 - (g * m00) - (j * m04) - (x * m08));
|
|
984
|
-
copy [ 8] = B * (t * m07 + s * m11 + y * m15 - (p * m07) - (v * m11) - (z * m15));
|
|
985
|
-
copy [ 9] = B * (p * m03 + A * m11 + E * m15 - (t * m03) - (C * m11) - (D * m15));
|
|
986
|
-
copy [10] = B * (v * m03 + C * m07 + F * m15 - (s * m03) - (A * m07) - (G * m15));
|
|
987
|
-
copy [11] = B * (z * m03 + D * m07 + G * m11 - (y * m03) - (E * m07) - (F * m11));
|
|
988
|
-
copy [12] = B * (v * m10 + z * m14 + p * m06 - (y * m14) - (t * m06) - (s * m10));
|
|
989
|
-
copy [13] = B * (D * m14 + t * m02 + C * m10 - (A * m10) - (E * m14) - (p * m02));
|
|
990
|
-
copy [14] = B * (A * m06 + G * m14 + s * m02 - (F * m14) - (v * m02) - (C * m06));
|
|
991
|
-
copy [15] = B * (F * m10 + y * m02 + E * m06 - (D * m06) - (G * m10) - (z * m02));
|
|
992
|
-
|
|
993
|
-
return copy;
|
|
928
|
+
return matrix .copy () .inverse ();
|
|
994
929
|
},
|
|
995
930
|
multLeft: function (lhs, rhs)
|
|
996
931
|
{
|
|
997
|
-
|
|
998
|
-
copy = Object .create (this .prototype),
|
|
999
|
-
a00 = lhs [ 0], a01 = lhs [ 1], a02 = lhs [ 2], a03 = lhs [ 3],
|
|
1000
|
-
a04 = lhs [ 4], a05 = lhs [ 5], a06 = lhs [ 6], a07 = lhs [ 7],
|
|
1001
|
-
a08 = lhs [ 8], a09 = lhs [ 9], a10 = lhs [10], a11 = lhs [11],
|
|
1002
|
-
a12 = lhs [12], a13 = lhs [13], a14 = lhs [14], a15 = lhs [15],
|
|
1003
|
-
b00 = rhs [ 0], b01 = rhs [ 1], b02 = rhs [ 2], b03 = rhs [ 3],
|
|
1004
|
-
b04 = rhs [ 4], b05 = rhs [ 5], b06 = rhs [ 6], b07 = rhs [ 7],
|
|
1005
|
-
b08 = rhs [ 8], b09 = rhs [ 9], b10 = rhs [10], b11 = rhs [11],
|
|
1006
|
-
b12 = rhs [12], b13 = rhs [13], b14 = rhs [14], b15 = rhs [15];
|
|
1007
|
-
|
|
1008
|
-
copy [ 0] = a00 * b00 + a04 * b01 + a08 * b02 + a12 * b03;
|
|
1009
|
-
copy [ 1] = a01 * b00 + a05 * b01 + a09 * b02 + a13 * b03;
|
|
1010
|
-
copy [ 2] = a02 * b00 + a06 * b01 + a10 * b02 + a14 * b03;
|
|
1011
|
-
copy [ 3] = a03 * b00 + a07 * b01 + a11 * b02 + a15 * b03;
|
|
1012
|
-
copy [ 4] = a00 * b04 + a04 * b05 + a08 * b06 + a12 * b07;
|
|
1013
|
-
copy [ 5] = a01 * b04 + a05 * b05 + a09 * b06 + a13 * b07;
|
|
1014
|
-
copy [ 6] = a02 * b04 + a06 * b05 + a10 * b06 + a14 * b07;
|
|
1015
|
-
copy [ 7] = a03 * b04 + a07 * b05 + a11 * b06 + a15 * b07;
|
|
1016
|
-
copy [ 8] = a00 * b08 + a04 * b09 + a08 * b10 + a12 * b11;
|
|
1017
|
-
copy [ 9] = a01 * b08 + a05 * b09 + a09 * b10 + a13 * b11;
|
|
1018
|
-
copy [10] = a02 * b08 + a06 * b09 + a10 * b10 + a14 * b11;
|
|
1019
|
-
copy [11] = a03 * b08 + a07 * b09 + a11 * b10 + a15 * b11;
|
|
1020
|
-
copy [12] = a00 * b12 + a04 * b13 + a08 * b14 + a12 * b15;
|
|
1021
|
-
copy [13] = a01 * b12 + a05 * b13 + a09 * b14 + a13 * b15;
|
|
1022
|
-
copy [14] = a02 * b12 + a06 * b13 + a10 * b14 + a14 * b15;
|
|
1023
|
-
copy [15] = a03 * b12 + a07 * b13 + a11 * b14 + a15 * b15;
|
|
1024
|
-
|
|
1025
|
-
return copy;
|
|
932
|
+
return lhs .copy () .multLeft (rhs);
|
|
1026
933
|
},
|
|
1027
934
|
multRight: function (lhs, rhs)
|
|
1028
935
|
{
|
|
1029
|
-
|
|
1030
|
-
copy = Object .create (this .prototype),
|
|
1031
|
-
a00 = lhs [ 0], a01 = lhs [ 1], a02 = lhs [ 2], a03 = lhs [ 3],
|
|
1032
|
-
a04 = lhs [ 4], a05 = lhs [ 5], a06 = lhs [ 6], a07 = lhs [ 7],
|
|
1033
|
-
a08 = lhs [ 8], a09 = lhs [ 9], a10 = lhs [10], a11 = lhs [11],
|
|
1034
|
-
a12 = lhs [12], a13 = lhs [13], a14 = lhs [14], a15 = lhs [15],
|
|
1035
|
-
b00 = rhs [ 0], b01 = rhs [ 1], b02 = rhs [ 2], b03 = rhs [ 3],
|
|
1036
|
-
b04 = rhs [ 4], b05 = rhs [ 5], b06 = rhs [ 6], b07 = rhs [ 7],
|
|
1037
|
-
b08 = rhs [ 8], b09 = rhs [ 9], b10 = rhs [10], b11 = rhs [11],
|
|
1038
|
-
b12 = rhs [12], b13 = rhs [13], b14 = rhs [14], b15 = rhs [15];
|
|
1039
|
-
|
|
1040
|
-
copy [ 0] = a00 * b00 + a01 * b04 + a02 * b08 + a03 * b12;
|
|
1041
|
-
copy [ 1] = a00 * b01 + a01 * b05 + a02 * b09 + a03 * b13;
|
|
1042
|
-
copy [ 2] = a00 * b02 + a01 * b06 + a02 * b10 + a03 * b14;
|
|
1043
|
-
copy [ 3] = a00 * b03 + a01 * b07 + a02 * b11 + a03 * b15;
|
|
1044
|
-
copy [ 4] = a04 * b00 + a05 * b04 + a06 * b08 + a07 * b12;
|
|
1045
|
-
copy [ 5] = a04 * b01 + a05 * b05 + a06 * b09 + a07 * b13;
|
|
1046
|
-
copy [ 6] = a04 * b02 + a05 * b06 + a06 * b10 + a07 * b14;
|
|
1047
|
-
copy [ 7] = a04 * b03 + a05 * b07 + a06 * b11 + a07 * b15;
|
|
1048
|
-
copy [ 8] = a08 * b00 + a09 * b04 + a10 * b08 + a11 * b12;
|
|
1049
|
-
copy [ 9] = a08 * b01 + a09 * b05 + a10 * b09 + a11 * b13;
|
|
1050
|
-
copy [10] = a08 * b02 + a09 * b06 + a10 * b10 + a11 * b14;
|
|
1051
|
-
copy [11] = a08 * b03 + a09 * b07 + a10 * b11 + a11 * b15;
|
|
1052
|
-
copy [12] = a12 * b00 + a13 * b04 + a14 * b08 + a15 * b12;
|
|
1053
|
-
copy [13] = a12 * b01 + a13 * b05 + a14 * b09 + a15 * b13;
|
|
1054
|
-
copy [14] = a12 * b02 + a13 * b06 + a14 * b10 + a15 * b14;
|
|
1055
|
-
copy [15] = a12 * b03 + a13 * b07 + a14 * b11 + a15 * b15;
|
|
1056
|
-
|
|
1057
|
-
return copy;
|
|
936
|
+
return lhs .copy () .multRight (rhs);
|
|
1058
937
|
},
|
|
1059
938
|
});
|
|
1060
939
|
|
|
1061
|
-
|
|
940
|
+
const rotateMatrix = new Matrix4 ();
|
|
1062
941
|
|
|
1063
942
|
return Matrix4;
|
|
1064
943
|
});
|