New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@vertexvis/geometry

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vertexvis/geometry

Library for 2D and 3D geometric types.


Version published
Weekly downloads
816
increased by24.77%
Maintainers
4
Weekly downloads
 
Created

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.20.3/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>

FAQs

Package last updated on 21 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts