0.0.9 • Published 2 months ago

@viamrobotics/three v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

@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';
0.0.9

2 months ago

0.0.8

2 months ago

0.0.5

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

10 months ago

0.0.1

10 months ago