code: function(vec) {
  				var matchedVertex = -1;
  				var l = this.vertices.length;
  				for(var i=0;i<l;i++)
  				{
  					var vert = this.vertices[i];
  					if(vert.equals(vec))
  					{
  						matchedVertex =i;
  					}
  				}
  				return matchedVertex;
  
  			}
docs: my own method to help