code: function (numPoints, width) {
    this.geometry = new THREE.BufferGeometry();
    this.vertices = new Float32Array(numPoints * 3 * 2);
    this.uvs = new Float32Array(numPoints * 2 * 2);
    this.width = width;
  
    this.geometry.addAttribute('position', new THREE.BufferAttribute(this.vertices, 3).setDynamic(true));
  
    this.material = new THREE.MeshBasicMaterial({
      side: THREE.DoubleSide,
      color: 0xff0000
    });
  
    this.mesh = new THREE.Mesh(this.geometry, this.material);
    this.mesh.drawMode = THREE.TriangleStripDrawMode;
  
    this.mesh.frustumCulled = false;
    this.mesh.vertices = this.vertices;
  
    this.direction = new THREE.Vector3();
    this.numPoints = numPoints;
  }
docs: /* global THREE