Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vertexvis/geometry

Package Overview
Dependencies
Maintainers
0
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vertexvis/geometry

Library for 2D and 3D geometric types.

  • 0.22.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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://cdn.jsdelivr.net/npm/@vertexvis/geometry@0.22.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>

FAQs

Package last updated on 22 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc