jsketcher/modules/scene/utils/vectorThreeEnhancement.js
2018-01-04 18:53:38 -08:00

5 lines
128 B
JavaScript

import Vector from 'math/vector';
Vector.prototype.three = function() {
return new THREE.Vector3(this.x, this.y, this.z);
};