Advertisement
pcwizz

match edge

Jun 2nd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Edge.prototype.matchEdge = function (pEdge){
  3.     //if the indexes match either way round
  4.     if (((this.point0 == pEdge.point0 && this.point1 == pEdge.point1) || (this.point0 == pEdge.point1 && this.point1 == pEdge1.point0 && this.vector == false)) && this.weight == pEdge.weight) {
  5.             return true;
  6.         }else{
  7.             return false;
  8.         }
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement