0.0.9 • Published 1 year ago

@viamrobotics/three v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year 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

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago