@vertexvis/geometry
TypeScript icon, indicating that this package has built-in type declarations

0.21.0 • Public • Published

2D and 3D Geometry Types for JS

npm npm (scoped with tag)

2D and 3D Geometry Types for JS.

Getting Started

Script Tag

The easiest way to use the helpers provided in this package is by including a <script> tag in your HTML file that references our published JS bundles from a CDN. These helpers can then be used in combination with our Viewer SDK to interact with the rendered scene. See the instructions there on getting started to set up a viewer.

<html>
  <head>
  </head>
  <body>
    <script type="module">
      import { Vector3 } from 'https://unpkg.com/@vertexvis/geometry@0.21.0/dist/cdn/bundle.esm.js';

      async function main() {
        const viewer = document.querySelector('#viewer');
        const scene = await viewer.scene();
        const camera = scene.camera();

        await camera.update({
          position: Vector3.create(0, 0, 100),
          lookAt: Vector3.origin(),
          up: Vector3.up(),
        })
        .render();
      }
    </script>
  </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i @vertexvis/geometry

Weekly Downloads

385

Version

0.21.0

License

MIT

Unpacked Size

934 kB

Total Files

62

Last publish

Collaborators

  • danschultz-vertex
  • jdm717
  • joshskinner-vertex
  • ci-vertex