Vertex.js 284 B

123456789101112131415161718192021
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.Vertex = function ( position ) {
  5. this.position = position || new THREE.Vector3();
  6. };
  7. THREE.Vertex.prototype = {
  8. constructor: THREE.Vertex,
  9. clone: function () {
  10. return new THREE.Vertex( this.position.clone() );
  11. }
  12. };