mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
7 lines
250 B
JavaScript
7 lines
250 B
JavaScript
import Vector from './vector';
|
|
import {Vector3} from 'three';
|
|
|
|
export const arrToThree = arr => new Vector3().fromArray(arr);
|
|
export const arrToVector = arr => new Vector().set3(arr);
|
|
export const threeToVector = threeV => new Vector().set(threeV);
|
|
|