🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@viamrobotics/three

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@viamrobotics/three

Viam-related utilities for THREE.js

latest
npmnpm
Version
0.0.9
Version published
Maintainers
6
Created
Source

@viamrobotics/three

Viam-related utilities for THREE.js

Orientation Vector

A class for Viam's Orientation Vector rotation type.

This class closely resembles other rotation formats like THREE.Quaternion or THREE.Euler.

import * as THREE from 'three';
import { OrientationVector } from '@viamrobotics/three';

const ov = new OrientationVector();
const quat = new THREE.Quaternion();
const euler = new THREE.Euler();

// Common conversions:
ov.toQuaternion(quat);
ov.toEuler(euler);

ov.setFromQuaternion(quat);

ViamObject3D

Extends THREE.Object3D and adds an .orientationVector that auto-updates when other rotation formats are updated.

import { ViamObject3D } from '@viamrobotics/three';

Keywords

three

FAQs

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